// Code generated by mockery v2.52.1. DO NOT EDIT. package handler 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" ) // mockBARTService is an autogenerated mock type for the BARTService type type mockBARTService struct { mock.Mock } type mockBARTService_Expecter struct { mock *mock.Mock } func (_m *mockBARTService) EXPECT() *mockBARTService_Expecter { return &mockBARTService_Expecter{mock: &_m.Mock} } // RetrieveItem provides a mock function with given fields: ctx, sess, inFrame, inBody func (_m *mockBARTService) RetrieveItem(ctx context.Context, sess *state.Session, inFrame wire.SNACFrame, inBody wire.SNAC_0x10_0x04_BARTDownloadQuery) (wire.SNACMessage, error) { ret := _m.Called(ctx, sess, inFrame, inBody) if len(ret) == 0 { panic("no return value specified for RetrieveItem") } var r0 wire.SNACMessage var r1 error if rf, ok := ret.Get(0).(func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x10_0x04_BARTDownloadQuery) (wire.SNACMessage, error)); ok { return rf(ctx, sess, inFrame, inBody) } if rf, ok := ret.Get(0).(func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x10_0x04_BARTDownloadQuery) wire.SNACMessage); ok { r0 = rf(ctx, sess, inFrame, inBody) } else { r0 = ret.Get(0).(wire.SNACMessage) } if rf, ok := ret.Get(1).(func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x10_0x04_BARTDownloadQuery) error); ok { r1 = rf(ctx, sess, inFrame, inBody) } else { r1 = ret.Error(1) } return r0, r1 } // mockBARTService_RetrieveItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrieveItem' type mockBARTService_RetrieveItem_Call struct { *mock.Call } // RetrieveItem is a helper method to define mock.On call // - ctx context.Context // - sess *state.Session // - inFrame wire.SNACFrame // - inBody wire.SNAC_0x10_0x04_BARTDownloadQuery func (_e *mockBARTService_Expecter) RetrieveItem(ctx interface{}, sess interface{}, inFrame interface{}, inBody interface{}) *mockBARTService_RetrieveItem_Call { return &mockBARTService_RetrieveItem_Call{Call: _e.mock.On("RetrieveItem", ctx, sess, inFrame, inBody)} } func (_c *mockBARTService_RetrieveItem_Call) Run(run func(ctx context.Context, sess *state.Session, inFrame wire.SNACFrame, inBody wire.SNAC_0x10_0x04_BARTDownloadQuery)) *mockBARTService_RetrieveItem_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_0x10_0x04_BARTDownloadQuery)) }) return _c } func (_c *mockBARTService_RetrieveItem_Call) Return(_a0 wire.SNACMessage, _a1 error) *mockBARTService_RetrieveItem_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *mockBARTService_RetrieveItem_Call) RunAndReturn(run func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x10_0x04_BARTDownloadQuery) (wire.SNACMessage, error)) *mockBARTService_RetrieveItem_Call { _c.Call.Return(run) return _c } // UpsertItem provides a mock function with given fields: ctx, sess, inFrame, inBody func (_m *mockBARTService) UpsertItem(ctx context.Context, sess *state.Session, inFrame wire.SNACFrame, inBody wire.SNAC_0x10_0x02_BARTUploadQuery) (wire.SNACMessage, error) { ret := _m.Called(ctx, sess, inFrame, inBody) if len(ret) == 0 { panic("no return value specified for UpsertItem") } var r0 wire.SNACMessage var r1 error if rf, ok := ret.Get(0).(func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x10_0x02_BARTUploadQuery) (wire.SNACMessage, error)); ok { return rf(ctx, sess, inFrame, inBody) } if rf, ok := ret.Get(0).(func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x10_0x02_BARTUploadQuery) wire.SNACMessage); ok { r0 = rf(ctx, sess, inFrame, inBody) } else { r0 = ret.Get(0).(wire.SNACMessage) } if rf, ok := ret.Get(1).(func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x10_0x02_BARTUploadQuery) error); ok { r1 = rf(ctx, sess, inFrame, inBody) } else { r1 = ret.Error(1) } return r0, r1 } // mockBARTService_UpsertItem_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UpsertItem' type mockBARTService_UpsertItem_Call struct { *mock.Call } // UpsertItem is a helper method to define mock.On call // - ctx context.Context // - sess *state.Session // - inFrame wire.SNACFrame // - inBody wire.SNAC_0x10_0x02_BARTUploadQuery func (_e *mockBARTService_Expecter) UpsertItem(ctx interface{}, sess interface{}, inFrame interface{}, inBody interface{}) *mockBARTService_UpsertItem_Call { return &mockBARTService_UpsertItem_Call{Call: _e.mock.On("UpsertItem", ctx, sess, inFrame, inBody)} } func (_c *mockBARTService_UpsertItem_Call) Run(run func(ctx context.Context, sess *state.Session, inFrame wire.SNACFrame, inBody wire.SNAC_0x10_0x02_BARTUploadQuery)) *mockBARTService_UpsertItem_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_0x10_0x02_BARTUploadQuery)) }) return _c } func (_c *mockBARTService_UpsertItem_Call) Return(_a0 wire.SNACMessage, _a1 error) *mockBARTService_UpsertItem_Call { _c.Call.Return(_a0, _a1) return _c } func (_c *mockBARTService_UpsertItem_Call) RunAndReturn(run func(context.Context, *state.Session, wire.SNACFrame, wire.SNAC_0x10_0x02_BARTUploadQuery) (wire.SNACMessage, error)) *mockBARTService_UpsertItem_Call { _c.Call.Return(run) return _c } // newMockBARTService creates a new instance of mockBARTService. 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 newMockBARTService(t interface { mock.TestingT Cleanup(func()) }) *mockBARTService { mock := &mockBARTService{} mock.Mock.Test(t) t.Cleanup(func() { mock.AssertExpectations(t) }) return mock }