| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182 |
- // Code generated by mockery v2.43.2. DO NOT EDIT.
- package http
- import (
- state "github.com/mk6i/retro-aim-server/state"
- mock "github.com/stretchr/testify/mock"
- )
- // mockSessionRetriever is an autogenerated mock type for the SessionRetriever type
- type mockSessionRetriever struct {
- mock.Mock
- }
- type mockSessionRetriever_Expecter struct {
- mock *mock.Mock
- }
- func (_m *mockSessionRetriever) EXPECT() *mockSessionRetriever_Expecter {
- return &mockSessionRetriever_Expecter{mock: &_m.Mock}
- }
- // AllSessions provides a mock function with given fields:
- func (_m *mockSessionRetriever) AllSessions() []*state.Session {
- ret := _m.Called()
- if len(ret) == 0 {
- panic("no return value specified for AllSessions")
- }
- var r0 []*state.Session
- if rf, ok := ret.Get(0).(func() []*state.Session); ok {
- r0 = rf()
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*state.Session)
- }
- }
- return r0
- }
- // mockSessionRetriever_AllSessions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllSessions'
- type mockSessionRetriever_AllSessions_Call struct {
- *mock.Call
- }
- // AllSessions is a helper method to define mock.On call
- func (_e *mockSessionRetriever_Expecter) AllSessions() *mockSessionRetriever_AllSessions_Call {
- return &mockSessionRetriever_AllSessions_Call{Call: _e.mock.On("AllSessions")}
- }
- func (_c *mockSessionRetriever_AllSessions_Call) Run(run func()) *mockSessionRetriever_AllSessions_Call {
- _c.Call.Run(func(args mock.Arguments) {
- run()
- })
- return _c
- }
- func (_c *mockSessionRetriever_AllSessions_Call) Return(_a0 []*state.Session) *mockSessionRetriever_AllSessions_Call {
- _c.Call.Return(_a0)
- return _c
- }
- func (_c *mockSessionRetriever_AllSessions_Call) RunAndReturn(run func() []*state.Session) *mockSessionRetriever_AllSessions_Call {
- _c.Call.Return(run)
- return _c
- }
- // newMockSessionRetriever creates a new instance of mockSessionRetriever. 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 newMockSessionRetriever(t interface {
- mock.TestingT
- Cleanup(func())
- }) *mockSessionRetriever {
- mock := &mockSessionRetriever{}
- mock.Mock.Test(t)
- t.Cleanup(func() { mock.AssertExpectations(t) })
- return mock
- }
|