github.com/vnforks/kid/v5@v5.22.1-0.20200408055009-b89d99c65676/einterfaces/mocks/DataRetentionInterface.go (about)

     1  // Code generated by mockery v1.0.0. DO NOT EDIT.
     2  
     3  // Regenerate this file using `make einterfaces-mocks`.
     4  
     5  package mocks
     6  
     7  import (
     8  	model "github.com/vnforks/kid/v5/model"
     9  	mock "github.com/stretchr/testify/mock"
    10  )
    11  
    12  // DataRetentionInterface is an autogenerated mock type for the DataRetentionInterface type
    13  type DataRetentionInterface struct {
    14  	mock.Mock
    15  }
    16  
    17  // GetPolicy provides a mock function with given fields:
    18  func (_m *DataRetentionInterface) GetPolicy() (*model.DataRetentionPolicy, *model.AppError) {
    19  	ret := _m.Called()
    20  
    21  	var r0 *model.DataRetentionPolicy
    22  	if rf, ok := ret.Get(0).(func() *model.DataRetentionPolicy); ok {
    23  		r0 = rf()
    24  	} else {
    25  		if ret.Get(0) != nil {
    26  			r0 = ret.Get(0).(*model.DataRetentionPolicy)
    27  		}
    28  	}
    29  
    30  	var r1 *model.AppError
    31  	if rf, ok := ret.Get(1).(func() *model.AppError); ok {
    32  		r1 = rf()
    33  	} else {
    34  		if ret.Get(1) != nil {
    35  			r1 = ret.Get(1).(*model.AppError)
    36  		}
    37  	}
    38  
    39  	return r0, r1
    40  }