mock_ChatRoomDeleter.go 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. // Code generated by mockery v2.53.3. DO NOT EDIT.
  2. package http
  3. import (
  4. context "context"
  5. mock "github.com/stretchr/testify/mock"
  6. )
  7. // mockChatRoomDeleter is an autogenerated mock type for the ChatRoomDeleter type
  8. type mockChatRoomDeleter struct {
  9. mock.Mock
  10. }
  11. type mockChatRoomDeleter_Expecter struct {
  12. mock *mock.Mock
  13. }
  14. func (_m *mockChatRoomDeleter) EXPECT() *mockChatRoomDeleter_Expecter {
  15. return &mockChatRoomDeleter_Expecter{mock: &_m.Mock}
  16. }
  17. // DeleteChatRooms provides a mock function with given fields: ctx, exchange, names
  18. func (_m *mockChatRoomDeleter) DeleteChatRooms(ctx context.Context, exchange uint16, names []string) error {
  19. ret := _m.Called(ctx, exchange, names)
  20. if len(ret) == 0 {
  21. panic("no return value specified for DeleteChatRooms")
  22. }
  23. var r0 error
  24. if rf, ok := ret.Get(0).(func(context.Context, uint16, []string) error); ok {
  25. r0 = rf(ctx, exchange, names)
  26. } else {
  27. r0 = ret.Error(0)
  28. }
  29. return r0
  30. }
  31. // mockChatRoomDeleter_DeleteChatRooms_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteChatRooms'
  32. type mockChatRoomDeleter_DeleteChatRooms_Call struct {
  33. *mock.Call
  34. }
  35. // DeleteChatRooms is a helper method to define mock.On call
  36. // - ctx context.Context
  37. // - exchange uint16
  38. // - names []string
  39. func (_e *mockChatRoomDeleter_Expecter) DeleteChatRooms(ctx interface{}, exchange interface{}, names interface{}) *mockChatRoomDeleter_DeleteChatRooms_Call {
  40. return &mockChatRoomDeleter_DeleteChatRooms_Call{Call: _e.mock.On("DeleteChatRooms", ctx, exchange, names)}
  41. }
  42. func (_c *mockChatRoomDeleter_DeleteChatRooms_Call) Run(run func(ctx context.Context, exchange uint16, names []string)) *mockChatRoomDeleter_DeleteChatRooms_Call {
  43. _c.Call.Run(func(args mock.Arguments) {
  44. run(args[0].(context.Context), args[1].(uint16), args[2].([]string))
  45. })
  46. return _c
  47. }
  48. func (_c *mockChatRoomDeleter_DeleteChatRooms_Call) Return(_a0 error) *mockChatRoomDeleter_DeleteChatRooms_Call {
  49. _c.Call.Return(_a0)
  50. return _c
  51. }
  52. func (_c *mockChatRoomDeleter_DeleteChatRooms_Call) RunAndReturn(run func(context.Context, uint16, []string) error) *mockChatRoomDeleter_DeleteChatRooms_Call {
  53. _c.Call.Return(run)
  54. return _c
  55. }
  56. // newMockChatRoomDeleter creates a new instance of mockChatRoomDeleter. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
  57. // The first argument is typically a *testing.T value.
  58. func newMockChatRoomDeleter(t interface {
  59. mock.TestingT
  60. Cleanup(func())
  61. }) *mockChatRoomDeleter {
  62. mock := &mockChatRoomDeleter{}
  63. mock.Mock.Test(t)
  64. t.Cleanup(func() { mock.AssertExpectations(t) })
  65. return mock
  66. }