| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- // Code generated by mockery v2.52.1. DO NOT EDIT.
- package toc
- import (
- context "context"
- state "github.com/mk6i/retro-aim-server/state"
- mock "github.com/stretchr/testify/mock"
- wire "github.com/mk6i/retro-aim-server/wire"
- )
- // mockAdminService is an autogenerated mock type for the AdminService type
- type mockAdminService struct {
- mock.Mock
- }
- type mockAdminService_Expecter struct {
- mock *mock.Mock
- }
- func (_m *mockAdminService) EXPECT() *mockAdminService_Expecter {
- return &mockAdminService_Expecter{mock: &_m.Mock}
- }
- // InfoChangeRequest provides a mock function with given fields: ctx, sess, frame, body
- func (_m *mockAdminService) InfoChangeRequest(ctx context.Context, sess *state.Session, frame wire.SNACFrame, body wire.SNAC_0x07_0x04_AdminInfoChangeRequest) (wire.SNACMessage, error) {
- ret := _m.Called(ctx, sess, frame, body)
- if len(ret) == 0 {
- panic("no return value specified for InfoChangeRequest")
- }
- var r0 wire.SNACMessage
- var r1 error
- if rf, ok := ret.Get(0).(func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x07_0x04_AdminInfoChangeRequest) (wire.SNACMessage, error)); ok {
- return rf(ctx, sess, frame, body)
- }
- if rf, ok := ret.Get(0).(func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x07_0x04_AdminInfoChangeRequest) wire.SNACMessage); ok {
- r0 = rf(ctx, sess, frame, body)
- } else {
- r0 = ret.Get(0).(wire.SNACMessage)
- }
- if rf, ok := ret.Get(1).(func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x07_0x04_AdminInfoChangeRequest) error); ok {
- r1 = rf(ctx, sess, frame, body)
- } else {
- r1 = ret.Error(1)
- }
- return r0, r1
- }
- // mockAdminService_InfoChangeRequest_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InfoChangeRequest'
- type mockAdminService_InfoChangeRequest_Call struct {
- *mock.Call
- }
- // InfoChangeRequest is a helper method to define mock.On call
- // - ctx context.Context
- // - sess *state.Session
- // - frame wire.SNACFrame
- // - body wire.SNAC_0x07_0x04_AdminInfoChangeRequest
- func (_e *mockAdminService_Expecter) InfoChangeRequest(ctx interface{}, sess interface{}, frame interface{}, body interface{}) *mockAdminService_InfoChangeRequest_Call {
- return &mockAdminService_InfoChangeRequest_Call{Call: _e.mock.On("InfoChangeRequest", ctx, sess, frame, body)}
- }
- func (_c *mockAdminService_InfoChangeRequest_Call) Run(run func(ctx context.Context, sess *state.Session, frame wire.SNACFrame, body wire.SNAC_0x07_0x04_AdminInfoChangeRequest)) *mockAdminService_InfoChangeRequest_Call {
- _c.Call.Run(func(args mock.Arguments) {
- run(args[0].(context.Context), args[1].(*state.Session), args[2].(wire.SNACFrame), args[3].(wire.SNAC_0x07_0x04_AdminInfoChangeRequest))
- })
- return _c
- }
- func (_c *mockAdminService_InfoChangeRequest_Call) Return(_a0 wire.SNACMessage, _a1 error) *mockAdminService_InfoChangeRequest_Call {
- _c.Call.Return(_a0, _a1)
- return _c
- }
- func (_c *mockAdminService_InfoChangeRequest_Call) RunAndReturn(run func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x07_0x04_AdminInfoChangeRequest) (wire.SNACMessage, error)) *mockAdminService_InfoChangeRequest_Call {
- _c.Call.Return(run)
- return _c
- }
- // newMockAdminService creates a new instance of mockAdminService. 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 newMockAdminService(t interface {
- mock.TestingT
- Cleanup(func())
- }) *mockAdminService {
- mock := &mockAdminService{}
- mock.Mock.Test(t)
- t.Cleanup(func() { mock.AssertExpectations(t) })
- return mock
- }
|