| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- // Code generated by mockery; DO NOT EDIT.
- // github.com/vektra/mockery
- // template: testify
- package http
- import (
- "context"
- "github.com/mk6i/open-oscar-server/state"
- mock "github.com/stretchr/testify/mock"
- )
- // newMockChatRoomCreator creates a new instance of mockChatRoomCreator. 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 newMockChatRoomCreator(t interface {
- mock.TestingT
- Cleanup(func())
- }) *mockChatRoomCreator {
- mock := &mockChatRoomCreator{}
- mock.Mock.Test(t)
- t.Cleanup(func() { mock.AssertExpectations(t) })
- return mock
- }
- // mockChatRoomCreator is an autogenerated mock type for the ChatRoomCreator type
- type mockChatRoomCreator struct {
- mock.Mock
- }
- type mockChatRoomCreator_Expecter struct {
- mock *mock.Mock
- }
- func (_m *mockChatRoomCreator) EXPECT() *mockChatRoomCreator_Expecter {
- return &mockChatRoomCreator_Expecter{mock: &_m.Mock}
- }
- // CreateChatRoom provides a mock function for the type mockChatRoomCreator
- func (_mock *mockChatRoomCreator) CreateChatRoom(ctx context.Context, chatRoom *state.ChatRoom) error {
- ret := _mock.Called(ctx, chatRoom)
- if len(ret) == 0 {
- panic("no return value specified for CreateChatRoom")
- }
- var r0 error
- if returnFunc, ok := ret.Get(0).(func(context.Context, *state.ChatRoom) error); ok {
- r0 = returnFunc(ctx, chatRoom)
- } else {
- r0 = ret.Error(0)
- }
- return r0
- }
- // mockChatRoomCreator_CreateChatRoom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateChatRoom'
- type mockChatRoomCreator_CreateChatRoom_Call struct {
- *mock.Call
- }
- // CreateChatRoom is a helper method to define mock.On call
- // - ctx context.Context
- // - chatRoom *state.ChatRoom
- func (_e *mockChatRoomCreator_Expecter) CreateChatRoom(ctx interface{}, chatRoom interface{}) *mockChatRoomCreator_CreateChatRoom_Call {
- return &mockChatRoomCreator_CreateChatRoom_Call{Call: _e.mock.On("CreateChatRoom", ctx, chatRoom)}
- }
- func (_c *mockChatRoomCreator_CreateChatRoom_Call) Run(run func(ctx context.Context, chatRoom *state.ChatRoom)) *mockChatRoomCreator_CreateChatRoom_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 context.Context
- if args[0] != nil {
- arg0 = args[0].(context.Context)
- }
- var arg1 *state.ChatRoom
- if args[1] != nil {
- arg1 = args[1].(*state.ChatRoom)
- }
- run(
- arg0,
- arg1,
- )
- })
- return _c
- }
- func (_c *mockChatRoomCreator_CreateChatRoom_Call) Return(err error) *mockChatRoomCreator_CreateChatRoom_Call {
- _c.Call.Return(err)
- return _c
- }
- func (_c *mockChatRoomCreator_CreateChatRoom_Call) RunAndReturn(run func(ctx context.Context, chatRoom *state.ChatRoom) error) *mockChatRoomCreator_CreateChatRoom_Call {
- _c.Call.Return(run)
- return _c
- }
|