| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- // Code generated by mockery; DO NOT EDIT.
- // github.com/vektra/mockery
- // template: testify
- package http
- import (
- "github.com/mk6i/open-oscar-server/state"
- mock "github.com/stretchr/testify/mock"
- )
- // newMockChatSessionRetriever creates a new instance of mockChatSessionRetriever. 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 newMockChatSessionRetriever(t interface {
- mock.TestingT
- Cleanup(func())
- }) *mockChatSessionRetriever {
- mock := &mockChatSessionRetriever{}
- mock.Mock.Test(t)
- t.Cleanup(func() { mock.AssertExpectations(t) })
- return mock
- }
- // mockChatSessionRetriever is an autogenerated mock type for the ChatSessionRetriever type
- type mockChatSessionRetriever struct {
- mock.Mock
- }
- type mockChatSessionRetriever_Expecter struct {
- mock *mock.Mock
- }
- func (_m *mockChatSessionRetriever) EXPECT() *mockChatSessionRetriever_Expecter {
- return &mockChatSessionRetriever_Expecter{mock: &_m.Mock}
- }
- // AllSessions provides a mock function for the type mockChatSessionRetriever
- func (_mock *mockChatSessionRetriever) AllSessions(cookie string) []*state.Session {
- ret := _mock.Called(cookie)
- if len(ret) == 0 {
- panic("no return value specified for AllSessions")
- }
- var r0 []*state.Session
- if returnFunc, ok := ret.Get(0).(func(string) []*state.Session); ok {
- r0 = returnFunc(cookie)
- } else {
- if ret.Get(0) != nil {
- r0 = ret.Get(0).([]*state.Session)
- }
- }
- return r0
- }
- // mockChatSessionRetriever_AllSessions_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllSessions'
- type mockChatSessionRetriever_AllSessions_Call struct {
- *mock.Call
- }
- // AllSessions is a helper method to define mock.On call
- // - cookie string
- func (_e *mockChatSessionRetriever_Expecter) AllSessions(cookie interface{}) *mockChatSessionRetriever_AllSessions_Call {
- return &mockChatSessionRetriever_AllSessions_Call{Call: _e.mock.On("AllSessions", cookie)}
- }
- func (_c *mockChatSessionRetriever_AllSessions_Call) Run(run func(cookie string)) *mockChatSessionRetriever_AllSessions_Call {
- _c.Call.Run(func(args mock.Arguments) {
- var arg0 string
- if args[0] != nil {
- arg0 = args[0].(string)
- }
- run(
- arg0,
- )
- })
- return _c
- }
- func (_c *mockChatSessionRetriever_AllSessions_Call) Return(sessions []*state.Session) *mockChatSessionRetriever_AllSessions_Call {
- _c.Call.Return(sessions)
- return _c
- }
- func (_c *mockChatSessionRetriever_AllSessions_Call) RunAndReturn(run func(cookie string) []*state.Session) *mockChatSessionRetriever_AllSessions_Call {
- _c.Call.Return(run)
- return _c
- }
|