Documentation ¶
Index ¶
- type ModeHistory
- func (_m *ModeHistory) Add(ctx context.Context, mode string, user string, message string) error
- func (_m *ModeHistory) CurrentMode() *modes.ModeChange
- func (_m *ModeHistory) GetHistory(ctx context.Context, offset int) ([]*modes.ModeChange, int, error)
- func (_m *ModeHistory) Update(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ModeHistory ¶
ModeHistory is an autogenerated mock type for the ModeHistory type
func NewModeHistory ¶
func NewModeHistory(t interface { mock.TestingT Cleanup(func()) }) *ModeHistory
NewModeHistory creates a new instance of ModeHistory. 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 (*ModeHistory) CurrentMode ¶
func (_m *ModeHistory) CurrentMode() *modes.ModeChange
CurrentMode provides a mock function with given fields:
func (*ModeHistory) GetHistory ¶
func (_m *ModeHistory) GetHistory(ctx context.Context, offset int) ([]*modes.ModeChange, int, error)
GetHistory provides a mock function with given fields: ctx, offset
Click to show internal directories.
Click to hide internal directories.