| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627 |
- // Code generated by mockery; DO NOT EDIT.
- // github.com/vektra/mockery
- // template: testify
- package foodgroup
- import (
- "context"
- "github.com/mk6i/open-oscar-server/state"
- "github.com/mk6i/open-oscar-server/wire"
- mock "github.com/stretchr/testify/mock"
- )
- // newMockProfileManager creates a new instance of mockProfileManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
- // The first argument is typically a *testing.T value.
- func newMockProfileManager(t interface {
- mock.TestingT
- Cleanup(func())
- }) *mockProfileManager {
- mock := &mockProfileManager{}
- mock.Mock.Test(t)
- t.Cleanup(func() { mock.AssertExpectations(t) })
- return mock
- }
- // mockProfileManager is an autogenerated mock type for the ProfileManager type
- type mockProfileManager struct {
- mock.Mock
- }
- type mockProfileManager_Expecter struct {
- mock *mock.Mock
- }
- func (_m *mockProfileManager) EXPECT() *mockProfileManager_Expecter {
- return &mockProfileManager_Expecter{mock: &_m.Mock}
- }
- // FindByAIMEmail provides a mock function for the type mockProfileManager
- func (_mock *mockProfileManager) FindByAIMEmail(ctx context.Context, email string) (state.User, error) {
- ret := _mock.Called(ctx, email)
- if len(ret) == 0 {
- panic("no return value specified for FindByAIMEmail")
- }
- var r0 state.User
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, string) (state.User, error)); ok {
- return returnFunc(ctx, email)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, string) state.User); ok {
- r0 = returnFunc(ctx, email)
- } else {
- r0 = ret.Get(0).(state.User)
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = returnFunc(ctx, email)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockProfileManager_FindByAIMEmail_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByAIMEmail'
- type mockProfileManager_FindByAIMEmail_Call struct {
- *mock.Call
- }
- // FindByAIMEmail is a helper method to define mock.On call
- // - ctx context.Context
- // - email string
- func (_e *mockProfileManager_Expecter) FindByAIMEmail(ctx interface{}, email interface{}) *mockProfileManager_FindByAIMEmail_Call {
- return &mockProfileManager_FindByAIMEmail_Call{Call: _e.mock.On("FindByAIMEmail", ctx, email)}
- }
- func (_c *mockProfileManager_FindByAIMEmail_Call) Run(run func(ctx context.Context, email string)) *mockProfileManager_FindByAIMEmail_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 string
- if args[1] != nil {
- arg1 = args[1].(string)
- }
- run(
- arg0,
- arg1,
- )
- })
- return _c
- }
- func (_c *mockProfileManager_FindByAIMEmail_Call) Return(user state.User, err error) *mockProfileManager_FindByAIMEmail_Call {
- _c.Call.Return(user, err)
- return _c
- }
- func (_c *mockProfileManager_FindByAIMEmail_Call) RunAndReturn(run func(ctx context.Context, email string) (state.User, error)) *mockProfileManager_FindByAIMEmail_Call {
- _c.Call.Return(run)
- return _c
- }
- // FindByAIMKeyword provides a mock function for the type mockProfileManager
- func (_mock *mockProfileManager) FindByAIMKeyword(ctx context.Context, keyword string) ([]state.User, error) {
- ret := _mock.Called(ctx, keyword)
- if len(ret) == 0 {
- panic("no return value specified for FindByAIMKeyword")
- }
- var r0 []state.User
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, string) ([]state.User, error)); ok {
- return returnFunc(ctx, keyword)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, string) []state.User); ok {
- r0 = returnFunc(ctx, keyword)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]state.User)
- }
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, string) error); ok {
- r1 = returnFunc(ctx, keyword)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockProfileManager_FindByAIMKeyword_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByAIMKeyword'
- type mockProfileManager_FindByAIMKeyword_Call struct {
- *mock.Call
- }
- // FindByAIMKeyword is a helper method to define mock.On call
- // - ctx context.Context
- // - keyword string
- func (_e *mockProfileManager_Expecter) FindByAIMKeyword(ctx interface{}, keyword interface{}) *mockProfileManager_FindByAIMKeyword_Call {
- return &mockProfileManager_FindByAIMKeyword_Call{Call: _e.mock.On("FindByAIMKeyword", ctx, keyword)}
- }
- func (_c *mockProfileManager_FindByAIMKeyword_Call) Run(run func(ctx context.Context, keyword string)) *mockProfileManager_FindByAIMKeyword_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 string
- if args[1] != nil {
- arg1 = args[1].(string)
- }
- run(
- arg0,
- arg1,
- )
- })
- return _c
- }
- func (_c *mockProfileManager_FindByAIMKeyword_Call) Return(users []state.User, err error) *mockProfileManager_FindByAIMKeyword_Call {
- _c.Call.Return(users, err)
- return _c
- }
- func (_c *mockProfileManager_FindByAIMKeyword_Call) RunAndReturn(run func(ctx context.Context, keyword string) ([]state.User, error)) *mockProfileManager_FindByAIMKeyword_Call {
- _c.Call.Return(run)
- return _c
- }
- // FindByAIMNameAndAddr provides a mock function for the type mockProfileManager
- func (_mock *mockProfileManager) FindByAIMNameAndAddr(ctx context.Context, info state.AIMNameAndAddr) ([]state.User, error) {
- ret := _mock.Called(ctx, info)
- if len(ret) == 0 {
- panic("no return value specified for FindByAIMNameAndAddr")
- }
- var r0 []state.User
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.AIMNameAndAddr) ([]state.User, error)); ok {
- return returnFunc(ctx, info)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.AIMNameAndAddr) []state.User); ok {
- r0 = returnFunc(ctx, info)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]state.User)
- }
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, state.AIMNameAndAddr) error); ok {
- r1 = returnFunc(ctx, info)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockProfileManager_FindByAIMNameAndAddr_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FindByAIMNameAndAddr'
- type mockProfileManager_FindByAIMNameAndAddr_Call struct {
- *mock.Call
- }
- // FindByAIMNameAndAddr is a helper method to define mock.On call
- // - ctx context.Context
- // - info state.AIMNameAndAddr
- func (_e *mockProfileManager_Expecter) FindByAIMNameAndAddr(ctx interface{}, info interface{}) *mockProfileManager_FindByAIMNameAndAddr_Call {
- return &mockProfileManager_FindByAIMNameAndAddr_Call{Call: _e.mock.On("FindByAIMNameAndAddr", ctx, info)}
- }
- func (_c *mockProfileManager_FindByAIMNameAndAddr_Call) Run(run func(ctx context.Context, info state.AIMNameAndAddr)) *mockProfileManager_FindByAIMNameAndAddr_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 state.AIMNameAndAddr
- if args[1] != nil {
- arg1 = args[1].(state.AIMNameAndAddr)
- }
- run(
- arg0,
- arg1,
- )
- })
- return _c
- }
- func (_c *mockProfileManager_FindByAIMNameAndAddr_Call) Return(users []state.User, err error) *mockProfileManager_FindByAIMNameAndAddr_Call {
- _c.Call.Return(users, err)
- return _c
- }
- func (_c *mockProfileManager_FindByAIMNameAndAddr_Call) RunAndReturn(run func(ctx context.Context, info state.AIMNameAndAddr) ([]state.User, error)) *mockProfileManager_FindByAIMNameAndAddr_Call {
- _c.Call.Return(run)
- return _c
- }
- // InterestList provides a mock function for the type mockProfileManager
- func (_mock *mockProfileManager) InterestList(ctx context.Context) ([]wire.ODirKeywordListItem, error) {
- ret := _mock.Called(ctx)
- if len(ret) == 0 {
- panic("no return value specified for InterestList")
- }
- var r0 []wire.ODirKeywordListItem
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context) ([]wire.ODirKeywordListItem, error)); ok {
- return returnFunc(ctx)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context) []wire.ODirKeywordListItem); ok {
- r0 = returnFunc(ctx)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]wire.ODirKeywordListItem)
- }
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context) error); ok {
- r1 = returnFunc(ctx)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockProfileManager_InterestList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InterestList'
- type mockProfileManager_InterestList_Call struct {
- *mock.Call
- }
- // InterestList is a helper method to define mock.On call
- // - ctx context.Context
- func (_e *mockProfileManager_Expecter) InterestList(ctx interface{}) *mockProfileManager_InterestList_Call {
- return &mockProfileManager_InterestList_Call{Call: _e.mock.On("InterestList", ctx)}
- }
- func (_c *mockProfileManager_InterestList_Call) Run(run func(ctx context.Context)) *mockProfileManager_InterestList_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- run(
- arg0,
- )
- })
- return _c
- }
- func (_c *mockProfileManager_InterestList_Call) Return(oDirKeywordListItems []wire.ODirKeywordListItem, err error) *mockProfileManager_InterestList_Call {
- _c.Call.Return(oDirKeywordListItems, err)
- return _c
- }
- func (_c *mockProfileManager_InterestList_Call) RunAndReturn(run func(ctx context.Context) ([]wire.ODirKeywordListItem, error)) *mockProfileManager_InterestList_Call {
- _c.Call.Return(run)
- return _c
- }
- // Profile provides a mock function for the type mockProfileManager
- func (_mock *mockProfileManager) Profile(ctx context.Context, screenName state.IdentScreenName) (state.UserProfile, error) {
- ret := _mock.Called(ctx, screenName)
- if len(ret) == 0 {
- panic("no return value specified for Profile")
- }
- var r0 state.UserProfile
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.IdentScreenName) (state.UserProfile, error)); ok {
- return returnFunc(ctx, screenName)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.IdentScreenName) state.UserProfile); ok {
- r0 = returnFunc(ctx, screenName)
- } else {
- r0 = ret.Get(0).(state.UserProfile)
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, state.IdentScreenName) error); ok {
- r1 = returnFunc(ctx, screenName)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockProfileManager_Profile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Profile'
- type mockProfileManager_Profile_Call struct {
- *mock.Call
- }
- // Profile is a helper method to define mock.On call
- // - ctx context.Context
- // - screenName state.IdentScreenName
- func (_e *mockProfileManager_Expecter) Profile(ctx interface{}, screenName interface{}) *mockProfileManager_Profile_Call {
- return &mockProfileManager_Profile_Call{Call: _e.mock.On("Profile", ctx, screenName)}
- }
- func (_c *mockProfileManager_Profile_Call) Run(run func(ctx context.Context, screenName state.IdentScreenName)) *mockProfileManager_Profile_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 state.IdentScreenName
- if args[1] != nil {
- arg1 = args[1].(state.IdentScreenName)
- }
- run(
- arg0,
- arg1,
- )
- })
- return _c
- }
- func (_c *mockProfileManager_Profile_Call) Return(userProfile state.UserProfile, err error) *mockProfileManager_Profile_Call {
- _c.Call.Return(userProfile, err)
- return _c
- }
- func (_c *mockProfileManager_Profile_Call) RunAndReturn(run func(ctx context.Context, screenName state.IdentScreenName) (state.UserProfile, error)) *mockProfileManager_Profile_Call {
- _c.Call.Return(run)
- return _c
- }
- // SetDirectoryInfo provides a mock function for the type mockProfileManager
- func (_mock *mockProfileManager) SetDirectoryInfo(ctx context.Context, screenName state.IdentScreenName, info state.AIMNameAndAddr) error {
- ret := _mock.Called(ctx, screenName, info)
- if len(ret) == 0 {
- panic("no return value specified for SetDirectoryInfo")
- }
- var r0 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.IdentScreenName, state.AIMNameAndAddr) error); ok {
- r0 = returnFunc(ctx, screenName, info)
- } else {
- r0 = ret.Error(0)
- }
- return r0
- }
- // mockProfileManager_SetDirectoryInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetDirectoryInfo'
- type mockProfileManager_SetDirectoryInfo_Call struct {
- *mock.Call
- }
- // SetDirectoryInfo is a helper method to define mock.On call
- // - ctx context.Context
- // - screenName state.IdentScreenName
- // - info state.AIMNameAndAddr
- func (_e *mockProfileManager_Expecter) SetDirectoryInfo(ctx interface{}, screenName interface{}, info interface{}) *mockProfileManager_SetDirectoryInfo_Call {
- return &mockProfileManager_SetDirectoryInfo_Call{Call: _e.mock.On("SetDirectoryInfo", ctx, screenName, info)}
- }
- func (_c *mockProfileManager_SetDirectoryInfo_Call) Run(run func(ctx context.Context, screenName state.IdentScreenName, info state.AIMNameAndAddr)) *mockProfileManager_SetDirectoryInfo_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 state.IdentScreenName
- if args[1] != nil {
- arg1 = args[1].(state.IdentScreenName)
- }
- var arg2 state.AIMNameAndAddr
- if args[2] != nil {
- arg2 = args[2].(state.AIMNameAndAddr)
- }
- run(
- arg0,
- arg1,
- arg2,
- )
- })
- return _c
- }
- func (_c *mockProfileManager_SetDirectoryInfo_Call) Return(err error) *mockProfileManager_SetDirectoryInfo_Call {
- _c.Call.Return(err)
- return _c
- }
- func (_c *mockProfileManager_SetDirectoryInfo_Call) RunAndReturn(run func(ctx context.Context, screenName state.IdentScreenName, info state.AIMNameAndAddr) error) *mockProfileManager_SetDirectoryInfo_Call {
- _c.Call.Return(run)
- return _c
- }
- // SetKeywords provides a mock function for the type mockProfileManager
- func (_mock *mockProfileManager) SetKeywords(ctx context.Context, screenName state.IdentScreenName, keywords [5]string) error {
- ret := _mock.Called(ctx, screenName, keywords)
- if len(ret) == 0 {
- panic("no return value specified for SetKeywords")
- }
- var r0 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.IdentScreenName, [5]string) error); ok {
- r0 = returnFunc(ctx, screenName, keywords)
- } else {
- r0 = ret.Error(0)
- }
- return r0
- }
- // mockProfileManager_SetKeywords_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetKeywords'
- type mockProfileManager_SetKeywords_Call struct {
- *mock.Call
- }
- // SetKeywords is a helper method to define mock.On call
- // - ctx context.Context
- // - screenName state.IdentScreenName
- // - keywords [5]string
- func (_e *mockProfileManager_Expecter) SetKeywords(ctx interface{}, screenName interface{}, keywords interface{}) *mockProfileManager_SetKeywords_Call {
- return &mockProfileManager_SetKeywords_Call{Call: _e.mock.On("SetKeywords", ctx, screenName, keywords)}
- }
- func (_c *mockProfileManager_SetKeywords_Call) Run(run func(ctx context.Context, screenName state.IdentScreenName, keywords [5]string)) *mockProfileManager_SetKeywords_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 state.IdentScreenName
- if args[1] != nil {
- arg1 = args[1].(state.IdentScreenName)
- }
- var arg2 [5]string
- if args[2] != nil {
- arg2 = args[2].([5]string)
- }
- run(
- arg0,
- arg1,
- arg2,
- )
- })
- return _c
- }
- func (_c *mockProfileManager_SetKeywords_Call) Return(err error) *mockProfileManager_SetKeywords_Call {
- _c.Call.Return(err)
- return _c
- }
- func (_c *mockProfileManager_SetKeywords_Call) RunAndReturn(run func(ctx context.Context, screenName state.IdentScreenName, keywords [5]string) error) *mockProfileManager_SetKeywords_Call {
- _c.Call.Return(run)
- return _c
- }
- // SetProfile provides a mock function for the type mockProfileManager
- func (_mock *mockProfileManager) SetProfile(ctx context.Context, screenName state.IdentScreenName, profile state.UserProfile) error {
- ret := _mock.Called(ctx, screenName, profile)
- if len(ret) == 0 {
- panic("no return value specified for SetProfile")
- }
- var r0 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.IdentScreenName, state.UserProfile) error); ok {
- r0 = returnFunc(ctx, screenName, profile)
- } else {
- r0 = ret.Error(0)
- }
- return r0
- }
- // mockProfileManager_SetProfile_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetProfile'
- type mockProfileManager_SetProfile_Call struct {
- *mock.Call
- }
- // SetProfile is a helper method to define mock.On call
- // - ctx context.Context
- // - screenName state.IdentScreenName
- // - profile state.UserProfile
- func (_e *mockProfileManager_Expecter) SetProfile(ctx interface{}, screenName interface{}, profile interface{}) *mockProfileManager_SetProfile_Call {
- return &mockProfileManager_SetProfile_Call{Call: _e.mock.On("SetProfile", ctx, screenName, profile)}
- }
- func (_c *mockProfileManager_SetProfile_Call) Run(run func(ctx context.Context, screenName state.IdentScreenName, profile state.UserProfile)) *mockProfileManager_SetProfile_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 state.IdentScreenName
- if args[1] != nil {
- arg1 = args[1].(state.IdentScreenName)
- }
- var arg2 state.UserProfile
- if args[2] != nil {
- arg2 = args[2].(state.UserProfile)
- }
- run(
- arg0,
- arg1,
- arg2,
- )
- })
- return _c
- }
- func (_c *mockProfileManager_SetProfile_Call) Return(err error) *mockProfileManager_SetProfile_Call {
- _c.Call.Return(err)
- return _c
- }
- func (_c *mockProfileManager_SetProfile_Call) RunAndReturn(run func(ctx context.Context, screenName state.IdentScreenName, profile state.UserProfile) error) *mockProfileManager_SetProfile_Call {
- _c.Call.Return(run)
- return _c
- }
- // User provides a mock function for the type mockProfileManager
- func (_mock *mockProfileManager) User(ctx context.Context, screenName state.IdentScreenName) (*state.User, error) {
- ret := _mock.Called(ctx, screenName)
- if len(ret) == 0 {
- panic("no return value specified for User")
- }
- var r0 *state.User
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.IdentScreenName) (*state.User, error)); ok {
- return returnFunc(ctx, screenName)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.IdentScreenName) *state.User); ok {
- r0 = returnFunc(ctx, screenName)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*state.User)
- }
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, state.IdentScreenName) error); ok {
- r1 = returnFunc(ctx, screenName)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockProfileManager_User_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'User'
- type mockProfileManager_User_Call struct {
- *mock.Call
- }
- // User is a helper method to define mock.On call
- // - ctx context.Context
- // - screenName state.IdentScreenName
- func (_e *mockProfileManager_Expecter) User(ctx interface{}, screenName interface{}) *mockProfileManager_User_Call {
- return &mockProfileManager_User_Call{Call: _e.mock.On("User", ctx, screenName)}
- }
- func (_c *mockProfileManager_User_Call) Run(run func(ctx context.Context, screenName state.IdentScreenName)) *mockProfileManager_User_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 state.IdentScreenName
- if args[1] != nil {
- arg1 = args[1].(state.IdentScreenName)
- }
- run(
- arg0,
- arg1,
- )
- })
- return _c
- }
- func (_c *mockProfileManager_User_Call) Return(user *state.User, err error) *mockProfileManager_User_Call {
- _c.Call.Return(user, err)
- return _c
- }
- func (_c *mockProfileManager_User_Call) RunAndReturn(run func(ctx context.Context, screenName state.IdentScreenName) (*state.User, error)) *mockProfileManager_User_Call {
- _c.Call.Return(run)
- return _c
- }
|