Files
team/server/channels/store/storetest/mocks/SessionAttributeStore.go

75 lines
1.9 KiB
Go

// Code generated by mockery v2.53.4. DO NOT EDIT.
// Regenerate this file using `make store-mocks`.
package mocks
import mock "github.com/stretchr/testify/mock"
// SessionAttributeStore is an autogenerated mock type for the SessionAttributeStore type
type SessionAttributeStore struct {
mock.Mock
}
// Get provides a mock function with given fields: sessionID
func (_m *SessionAttributeStore) Get(sessionID string) (map[string]interface{}, error) {
ret := _m.Called(sessionID)
if len(ret) == 0 {
panic("no return value specified for Get")
}
var r0 map[string]interface{}
var r1 error
if rf, ok := ret.Get(0).(func(string) (map[string]interface{}, error)); ok {
return rf(sessionID)
}
if rf, ok := ret.Get(0).(func(string) map[string]interface{}); ok {
r0 = rf(sessionID)
} else {
if ret.Get(0) != nil {
r0 = ret.Get(0).(map[string]interface{})
}
}
if rf, ok := ret.Get(1).(func(string) error); ok {
r1 = rf(sessionID)
} else {
r1 = ret.Error(1)
}
return r0, r1
}
// Refresh provides a mock function with given fields: sessionID, attrs
func (_m *SessionAttributeStore) Refresh(sessionID string, attrs map[string]interface{}) error {
ret := _m.Called(sessionID, attrs)
if len(ret) == 0 {
panic("no return value specified for Refresh")
}
var r0 error
if rf, ok := ret.Get(0).(func(string, map[string]interface{}) error); ok {
r0 = rf(sessionID, attrs)
} else {
r0 = ret.Error(0)
}
return r0
}
// NewSessionAttributeStore creates a new instance of SessionAttributeStore. 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 NewSessionAttributeStore(t interface {
mock.TestingT
Cleanup(func())
}) *SessionAttributeStore {
mock := &SessionAttributeStore{}
mock.Mock.Test(t)
t.Cleanup(func() { mock.AssertExpectations(t) })
return mock
}