package history_test
import (
reflect "reflect"
gomock "github.com/golang/mock/gomock"
history "github.com/kardolus/chatgpt-cli/history"
)
type MockStore struct {
ctrl *gomock.Controller
recorder *MockStoreMockRecorder
}
type MockStoreMockRecorder struct {
mock *MockStore
}
func NewMockStore(ctrl *gomock.Controller) *MockStore {
mock := &MockStore{ctrl: ctrl}
mock.recorder = &MockStoreMockRecorder{mock}
return mock
}
func (m *MockStore) EXPECT() *MockStoreMockRecorder {
return m.recorder
}
func (m *MockStore) GetThread() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetThread")
ret0, _ := ret[0].(string)
return ret0
}
func (mr *MockStoreMockRecorder) GetThread() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetThread", reflect.TypeOf((*MockStore)(nil).GetThread))
}
func (m *MockStore) Read() ([]history.History, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Read")
ret0, _ := ret[0].([]history.History)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockStoreMockRecorder) Read() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Read", reflect.TypeOf((*MockStore)(nil).Read))
}
func (m *MockStore) ReadThread(arg0 string) ([]history.History, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "ReadThread", arg0)
ret0, _ := ret[0].([]history.History)
ret1, _ := ret[1].(error)
return ret0, ret1
}
func (mr *MockStoreMockRecorder) ReadThread(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "ReadThread", reflect.TypeOf((*MockStore)(nil).ReadThread), arg0)
}
func (m *MockStore) SetThread(arg0 string) {
m.ctrl.T.Helper()
m.ctrl.Call(m, "SetThread", arg0)
}
func (mr *MockStoreMockRecorder) SetThread(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetThread", reflect.TypeOf((*MockStore)(nil).SetThread), arg0)
}
func (m *MockStore) Write(arg0 []history.History) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Write", arg0)
ret0, _ := ret[0].(error)
return ret0
}
func (mr *MockStoreMockRecorder) Write(arg0 interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Write", reflect.TypeOf((*MockStore)(nil).Write), arg0)
}