| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625 |
- // Code generated by mockery; DO NOT EDIT.
- // github.com/vektra/mockery
- // template: testify
- package toc
- import (
- "context"
- "github.com/google/uuid"
- "github.com/mk6i/open-oscar-server/state"
- "github.com/mk6i/open-oscar-server/wire"
- mock "github.com/stretchr/testify/mock"
- )
- // newMockAuthService creates a new instance of mockAuthService. 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 newMockAuthService(t interface {
- mock.TestingT
- Cleanup(func())
- }) *mockAuthService {
- mock := &mockAuthService{}
- mock.Mock.Test(t)
- t.Cleanup(func() { mock.AssertExpectations(t) })
- return mock
- }
- // mockAuthService is an autogenerated mock type for the AuthService type
- type mockAuthService struct {
- mock.Mock
- }
- type mockAuthService_Expecter struct {
- mock *mock.Mock
- }
- func (_m *mockAuthService) EXPECT() *mockAuthService_Expecter {
- return &mockAuthService_Expecter{mock: &_m.Mock}
- }
- // BUCPChallenge provides a mock function for the type mockAuthService
- func (_mock *mockAuthService) BUCPChallenge(ctx context.Context, inBody wire.SNAC_0x17_0x06_BUCPChallengeRequest, newUUID func() uuid.UUID) (wire.SNACMessage, error) {
- ret := _mock.Called(ctx, inBody, newUUID)
- if len(ret) == 0 {
- panic("no return value specified for BUCPChallenge")
- }
- var r0 wire.SNACMessage
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x06_BUCPChallengeRequest, func() uuid.UUID) (wire.SNACMessage, error)); ok {
- return returnFunc(ctx, inBody, newUUID)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x06_BUCPChallengeRequest, func() uuid.UUID) wire.SNACMessage); ok {
- r0 = returnFunc(ctx, inBody, newUUID)
- } else {
- r0 = ret.Get(0).(wire.SNACMessage)
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, wire.SNAC_0x17_0x06_BUCPChallengeRequest, func() uuid.UUID) error); ok {
- r1 = returnFunc(ctx, inBody, newUUID)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockAuthService_BUCPChallenge_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BUCPChallenge'
- type mockAuthService_BUCPChallenge_Call struct {
- *mock.Call
- }
- // BUCPChallenge is a helper method to define mock.On call
- // - ctx context.Context
- // - inBody wire.SNAC_0x17_0x06_BUCPChallengeRequest
- // - newUUID func() uuid.UUID
- func (_e *mockAuthService_Expecter) BUCPChallenge(ctx interface{}, inBody interface{}, newUUID interface{}) *mockAuthService_BUCPChallenge_Call {
- return &mockAuthService_BUCPChallenge_Call{Call: _e.mock.On("BUCPChallenge", ctx, inBody, newUUID)}
- }
- func (_c *mockAuthService_BUCPChallenge_Call) Run(run func(ctx context.Context, inBody wire.SNAC_0x17_0x06_BUCPChallengeRequest, newUUID func() uuid.UUID)) *mockAuthService_BUCPChallenge_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 wire.SNAC_0x17_0x06_BUCPChallengeRequest
- if args[1] != nil {
- arg1 = args[1].(wire.SNAC_0x17_0x06_BUCPChallengeRequest)
- }
- var arg2 func() uuid.UUID
- if args[2] != nil {
- arg2 = args[2].(func() uuid.UUID)
- }
- run(
- arg0,
- arg1,
- arg2,
- )
- })
- return _c
- }
- func (_c *mockAuthService_BUCPChallenge_Call) Return(sNACMessage wire.SNACMessage, err error) *mockAuthService_BUCPChallenge_Call {
- _c.Call.Return(sNACMessage, err)
- return _c
- }
- func (_c *mockAuthService_BUCPChallenge_Call) RunAndReturn(run func(ctx context.Context, inBody wire.SNAC_0x17_0x06_BUCPChallengeRequest, newUUID func() uuid.UUID) (wire.SNACMessage, error)) *mockAuthService_BUCPChallenge_Call {
- _c.Call.Return(run)
- return _c
- }
- // BUCPLogin provides a mock function for the type mockAuthService
- func (_mock *mockAuthService) BUCPLogin(ctx context.Context, inBody wire.SNAC_0x17_0x02_BUCPLoginRequest, advertisedHost string) (wire.SNACMessage, error) {
- ret := _mock.Called(ctx, inBody, advertisedHost)
- if len(ret) == 0 {
- panic("no return value specified for BUCPLogin")
- }
- var r0 wire.SNACMessage
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, string) (wire.SNACMessage, error)); ok {
- return returnFunc(ctx, inBody, advertisedHost)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, string) wire.SNACMessage); ok {
- r0 = returnFunc(ctx, inBody, advertisedHost)
- } else {
- r0 = ret.Get(0).(wire.SNACMessage)
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, wire.SNAC_0x17_0x02_BUCPLoginRequest, string) error); ok {
- r1 = returnFunc(ctx, inBody, advertisedHost)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockAuthService_BUCPLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'BUCPLogin'
- type mockAuthService_BUCPLogin_Call struct {
- *mock.Call
- }
- // BUCPLogin is a helper method to define mock.On call
- // - ctx context.Context
- // - inBody wire.SNAC_0x17_0x02_BUCPLoginRequest
- // - advertisedHost string
- func (_e *mockAuthService_Expecter) BUCPLogin(ctx interface{}, inBody interface{}, advertisedHost interface{}) *mockAuthService_BUCPLogin_Call {
- return &mockAuthService_BUCPLogin_Call{Call: _e.mock.On("BUCPLogin", ctx, inBody, advertisedHost)}
- }
- func (_c *mockAuthService_BUCPLogin_Call) Run(run func(ctx context.Context, inBody wire.SNAC_0x17_0x02_BUCPLoginRequest, advertisedHost string)) *mockAuthService_BUCPLogin_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 wire.SNAC_0x17_0x02_BUCPLoginRequest
- if args[1] != nil {
- arg1 = args[1].(wire.SNAC_0x17_0x02_BUCPLoginRequest)
- }
- var arg2 string
- if args[2] != nil {
- arg2 = args[2].(string)
- }
- run(
- arg0,
- arg1,
- arg2,
- )
- })
- return _c
- }
- func (_c *mockAuthService_BUCPLogin_Call) Return(sNACMessage wire.SNACMessage, err error) *mockAuthService_BUCPLogin_Call {
- _c.Call.Return(sNACMessage, err)
- return _c
- }
- func (_c *mockAuthService_BUCPLogin_Call) RunAndReturn(run func(ctx context.Context, inBody wire.SNAC_0x17_0x02_BUCPLoginRequest, advertisedHost string) (wire.SNACMessage, error)) *mockAuthService_BUCPLogin_Call {
- _c.Call.Return(run)
- return _c
- }
- // CrackCookie provides a mock function for the type mockAuthService
- func (_mock *mockAuthService) CrackCookie(authCookie []byte) (state.ServerCookie, error) {
- ret := _mock.Called(authCookie)
- if len(ret) == 0 {
- panic("no return value specified for CrackCookie")
- }
- var r0 state.ServerCookie
- var r1 error
- if returnFunc, ok := ret.Get(0).(func([]byte) (state.ServerCookie, error)); ok {
- return returnFunc(authCookie)
- }
- if returnFunc, ok := ret.Get(0).(func([]byte) state.ServerCookie); ok {
- r0 = returnFunc(authCookie)
- } else {
- r0 = ret.Get(0).(state.ServerCookie)
- }
- if returnFunc, ok := ret.Get(1).(func([]byte) error); ok {
- r1 = returnFunc(authCookie)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockAuthService_CrackCookie_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CrackCookie'
- type mockAuthService_CrackCookie_Call struct {
- *mock.Call
- }
- // CrackCookie is a helper method to define mock.On call
- // - authCookie []byte
- func (_e *mockAuthService_Expecter) CrackCookie(authCookie interface{}) *mockAuthService_CrackCookie_Call {
- return &mockAuthService_CrackCookie_Call{Call: _e.mock.On("CrackCookie", authCookie)}
- }
- func (_c *mockAuthService_CrackCookie_Call) Run(run func(authCookie []byte)) *mockAuthService_CrackCookie_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 []byte
- if args[0] != nil {
- arg0 = args[0].([]byte)
- }
- run(
- arg0,
- )
- })
- return _c
- }
- func (_c *mockAuthService_CrackCookie_Call) Return(serverCookie state.ServerCookie, err error) *mockAuthService_CrackCookie_Call {
- _c.Call.Return(serverCookie, err)
- return _c
- }
- func (_c *mockAuthService_CrackCookie_Call) RunAndReturn(run func(authCookie []byte) (state.ServerCookie, error)) *mockAuthService_CrackCookie_Call {
- _c.Call.Return(run)
- return _c
- }
- // FLAPLogin provides a mock function for the type mockAuthService
- func (_mock *mockAuthService) FLAPLogin(ctx context.Context, inFrame wire.FLAPSignonFrame, advertisedHost string) (wire.TLVRestBlock, error) {
- ret := _mock.Called(ctx, inFrame, advertisedHost)
- if len(ret) == 0 {
- panic("no return value specified for FLAPLogin")
- }
- var r0 wire.TLVRestBlock
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, string) (wire.TLVRestBlock, error)); ok {
- return returnFunc(ctx, inFrame, advertisedHost)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, wire.FLAPSignonFrame, string) wire.TLVRestBlock); ok {
- r0 = returnFunc(ctx, inFrame, advertisedHost)
- } else {
- r0 = ret.Get(0).(wire.TLVRestBlock)
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, wire.FLAPSignonFrame, string) error); ok {
- r1 = returnFunc(ctx, inFrame, advertisedHost)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockAuthService_FLAPLogin_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'FLAPLogin'
- type mockAuthService_FLAPLogin_Call struct {
- *mock.Call
- }
- // FLAPLogin is a helper method to define mock.On call
- // - ctx context.Context
- // - inFrame wire.FLAPSignonFrame
- // - advertisedHost string
- func (_e *mockAuthService_Expecter) FLAPLogin(ctx interface{}, inFrame interface{}, advertisedHost interface{}) *mockAuthService_FLAPLogin_Call {
- return &mockAuthService_FLAPLogin_Call{Call: _e.mock.On("FLAPLogin", ctx, inFrame, advertisedHost)}
- }
- func (_c *mockAuthService_FLAPLogin_Call) Run(run func(ctx context.Context, inFrame wire.FLAPSignonFrame, advertisedHost string)) *mockAuthService_FLAPLogin_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 wire.FLAPSignonFrame
- if args[1] != nil {
- arg1 = args[1].(wire.FLAPSignonFrame)
- }
- var arg2 string
- if args[2] != nil {
- arg2 = args[2].(string)
- }
- run(
- arg0,
- arg1,
- arg2,
- )
- })
- return _c
- }
- func (_c *mockAuthService_FLAPLogin_Call) Return(tLVRestBlock wire.TLVRestBlock, err error) *mockAuthService_FLAPLogin_Call {
- _c.Call.Return(tLVRestBlock, err)
- return _c
- }
- func (_c *mockAuthService_FLAPLogin_Call) RunAndReturn(run func(ctx context.Context, inFrame wire.FLAPSignonFrame, advertisedHost string) (wire.TLVRestBlock, error)) *mockAuthService_FLAPLogin_Call {
- _c.Call.Return(run)
- return _c
- }
- // RegisterBOSSession provides a mock function for the type mockAuthService
- func (_mock *mockAuthService) RegisterBOSSession(ctx context.Context, authCookie state.ServerCookie, cfg func(*state.Session)) (*state.SessionInstance, error) {
- ret := _mock.Called(ctx, authCookie, cfg)
- if len(ret) == 0 {
- panic("no return value specified for RegisterBOSSession")
- }
- var r0 *state.SessionInstance
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.ServerCookie, func(*state.Session)) (*state.SessionInstance, error)); ok {
- return returnFunc(ctx, authCookie, cfg)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.ServerCookie, func(*state.Session)) *state.SessionInstance); ok {
- r0 = returnFunc(ctx, authCookie, cfg)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*state.SessionInstance)
- }
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, state.ServerCookie, func(*state.Session)) error); ok {
- r1 = returnFunc(ctx, authCookie, cfg)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockAuthService_RegisterBOSSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterBOSSession'
- type mockAuthService_RegisterBOSSession_Call struct {
- *mock.Call
- }
- // RegisterBOSSession is a helper method to define mock.On call
- // - ctx context.Context
- // - authCookie state.ServerCookie
- // - cfg func(*state.Session)
- func (_e *mockAuthService_Expecter) RegisterBOSSession(ctx interface{}, authCookie interface{}, cfg interface{}) *mockAuthService_RegisterBOSSession_Call {
- return &mockAuthService_RegisterBOSSession_Call{Call: _e.mock.On("RegisterBOSSession", ctx, authCookie, cfg)}
- }
- func (_c *mockAuthService_RegisterBOSSession_Call) Run(run func(ctx context.Context, authCookie state.ServerCookie, cfg func(*state.Session))) *mockAuthService_RegisterBOSSession_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 state.ServerCookie
- if args[1] != nil {
- arg1 = args[1].(state.ServerCookie)
- }
- var arg2 func(*state.Session)
- if args[2] != nil {
- arg2 = args[2].(func(*state.Session))
- }
- run(
- arg0,
- arg1,
- arg2,
- )
- })
- return _c
- }
- func (_c *mockAuthService_RegisterBOSSession_Call) Return(sessionInstance *state.SessionInstance, err error) *mockAuthService_RegisterBOSSession_Call {
- _c.Call.Return(sessionInstance, err)
- return _c
- }
- func (_c *mockAuthService_RegisterBOSSession_Call) RunAndReturn(run func(ctx context.Context, authCookie state.ServerCookie, cfg func(*state.Session)) (*state.SessionInstance, error)) *mockAuthService_RegisterBOSSession_Call {
- _c.Call.Return(run)
- return _c
- }
- // RegisterChatSession provides a mock function for the type mockAuthService
- func (_mock *mockAuthService) RegisterChatSession(ctx context.Context, authCookie state.ServerCookie, cfg func(sess *state.Session)) (*state.SessionInstance, error) {
- ret := _mock.Called(ctx, authCookie, cfg)
- if len(ret) == 0 {
- panic("no return value specified for RegisterChatSession")
- }
- var r0 *state.SessionInstance
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.ServerCookie, func(sess *state.Session)) (*state.SessionInstance, error)); ok {
- return returnFunc(ctx, authCookie, cfg)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.ServerCookie, func(sess *state.Session)) *state.SessionInstance); ok {
- r0 = returnFunc(ctx, authCookie, cfg)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*state.SessionInstance)
- }
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, state.ServerCookie, func(sess *state.Session)) error); ok {
- r1 = returnFunc(ctx, authCookie, cfg)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockAuthService_RegisterChatSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterChatSession'
- type mockAuthService_RegisterChatSession_Call struct {
- *mock.Call
- }
- // RegisterChatSession is a helper method to define mock.On call
- // - ctx context.Context
- // - authCookie state.ServerCookie
- // - cfg func(sess *state.Session)
- func (_e *mockAuthService_Expecter) RegisterChatSession(ctx interface{}, authCookie interface{}, cfg interface{}) *mockAuthService_RegisterChatSession_Call {
- return &mockAuthService_RegisterChatSession_Call{Call: _e.mock.On("RegisterChatSession", ctx, authCookie, cfg)}
- }
- func (_c *mockAuthService_RegisterChatSession_Call) Run(run func(ctx context.Context, authCookie state.ServerCookie, cfg func(sess *state.Session))) *mockAuthService_RegisterChatSession_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 state.ServerCookie
- if args[1] != nil {
- arg1 = args[1].(state.ServerCookie)
- }
- var arg2 func(sess *state.Session)
- if args[2] != nil {
- arg2 = args[2].(func(sess *state.Session))
- }
- run(
- arg0,
- arg1,
- arg2,
- )
- })
- return _c
- }
- func (_c *mockAuthService_RegisterChatSession_Call) Return(sessionInstance *state.SessionInstance, err error) *mockAuthService_RegisterChatSession_Call {
- _c.Call.Return(sessionInstance, err)
- return _c
- }
- func (_c *mockAuthService_RegisterChatSession_Call) RunAndReturn(run func(ctx context.Context, authCookie state.ServerCookie, cfg func(sess *state.Session)) (*state.SessionInstance, error)) *mockAuthService_RegisterChatSession_Call {
- _c.Call.Return(run)
- return _c
- }
- // RetrieveBOSSession provides a mock function for the type mockAuthService
- func (_mock *mockAuthService) RetrieveBOSSession(ctx context.Context, authCookie state.ServerCookie) (*state.SessionInstance, error) {
- ret := _mock.Called(ctx, authCookie)
- if len(ret) == 0 {
- panic("no return value specified for RetrieveBOSSession")
- }
- var r0 *state.SessionInstance
- var r1 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.ServerCookie) (*state.SessionInstance, error)); ok {
- return returnFunc(ctx, authCookie)
- }
- if returnFunc, ok := ret.Get(0).(func(context.Context, state.ServerCookie) *state.SessionInstance); ok {
- r0 = returnFunc(ctx, authCookie)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).(*state.SessionInstance)
- }
- }
- if returnFunc, ok := ret.Get(1).(func(context.Context, state.ServerCookie) error); ok {
- r1 = returnFunc(ctx, authCookie)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockAuthService_RetrieveBOSSession_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveBOSSession'
- type mockAuthService_RetrieveBOSSession_Call struct {
- *mock.Call
- }
- // RetrieveBOSSession is a helper method to define mock.On call
- // - ctx context.Context
- // - authCookie state.ServerCookie
- func (_e *mockAuthService_Expecter) RetrieveBOSSession(ctx interface{}, authCookie interface{}) *mockAuthService_RetrieveBOSSession_Call {
- return &mockAuthService_RetrieveBOSSession_Call{Call: _e.mock.On("RetrieveBOSSession", ctx, authCookie)}
- }
- func (_c *mockAuthService_RetrieveBOSSession_Call) Run(run func(ctx context.Context, authCookie state.ServerCookie)) *mockAuthService_RetrieveBOSSession_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 state.ServerCookie
- if args[1] != nil {
- arg1 = args[1].(state.ServerCookie)
- }
- run(
- arg0,
- arg1,
- )
- })
- return _c
- }
- func (_c *mockAuthService_RetrieveBOSSession_Call) Return(sessionInstance *state.SessionInstance, err error) *mockAuthService_RetrieveBOSSession_Call {
- _c.Call.Return(sessionInstance, err)
- return _c
- }
- func (_c *mockAuthService_RetrieveBOSSession_Call) RunAndReturn(run func(ctx context.Context, authCookie state.ServerCookie) (*state.SessionInstance, error)) *mockAuthService_RetrieveBOSSession_Call {
- _c.Call.Return(run)
- return _c
- }
- // Signout provides a mock function for the type mockAuthService
- func (_mock *mockAuthService) Signout(ctx context.Context, session *state.Session) {
- _mock.Called(ctx, session)
- return
- }
- // mockAuthService_Signout_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Signout'
- type mockAuthService_Signout_Call struct {
- *mock.Call
- }
- // Signout is a helper method to define mock.On call
- // - ctx context.Context
- // - session *state.Session
- func (_e *mockAuthService_Expecter) Signout(ctx interface{}, session interface{}) *mockAuthService_Signout_Call {
- return &mockAuthService_Signout_Call{Call: _e.mock.On("Signout", ctx, session)}
- }
- func (_c *mockAuthService_Signout_Call) Run(run func(ctx context.Context, session *state.Session)) *mockAuthService_Signout_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 *state.Session
- if args[1] != nil {
- arg1 = args[1].(*state.Session)
- }
- run(
- arg0,
- arg1,
- )
- })
- return _c
- }
- func (_c *mockAuthService_Signout_Call) Return() *mockAuthService_Signout_Call {
- _c.Call.Return()
- return _c
- }
- func (_c *mockAuthService_Signout_Call) RunAndReturn(run func(ctx context.Context, session *state.Session)) *mockAuthService_Signout_Call {
- _c.Run(run)
- return _c
- }
- // SignoutChat provides a mock function for the type mockAuthService
- func (_mock *mockAuthService) SignoutChat(ctx context.Context, sess *state.Session) {
- _mock.Called(ctx, sess)
- return
- }
- // mockAuthService_SignoutChat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SignoutChat'
- type mockAuthService_SignoutChat_Call struct {
- *mock.Call
- }
- // SignoutChat is a helper method to define mock.On call
- // - ctx context.Context
- // - sess *state.Session
- func (_e *mockAuthService_Expecter) SignoutChat(ctx interface{}, sess interface{}) *mockAuthService_SignoutChat_Call {
- return &mockAuthService_SignoutChat_Call{Call: _e.mock.On("SignoutChat", ctx, sess)}
- }
- func (_c *mockAuthService_SignoutChat_Call) Run(run func(ctx context.Context, sess *state.Session)) *mockAuthService_SignoutChat_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 *state.Session
- if args[1] != nil {
- arg1 = args[1].(*state.Session)
- }
- run(
- arg0,
- arg1,
- )
- })
- return _c
- }
- func (_c *mockAuthService_SignoutChat_Call) Return() *mockAuthService_SignoutChat_Call {
- _c.Call.Return()
- return _c
- }
- func (_c *mockAuthService_SignoutChat_Call) RunAndReturn(run func(ctx context.Context, sess *state.Session)) *mockAuthService_SignoutChat_Call {
- _c.Run(run)
- return _c
- }
|