mocks

package
v0.0.0-...-b24f37d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2024 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ModeHistory

type ModeHistory struct {
	mock.Mock
}

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) Add

func (_m *ModeHistory) Add(ctx context.Context, mode string, user string, message string) error

Add provides a mock function with given fields: ctx, mode, user, message

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

func (*ModeHistory) Update

func (_m *ModeHistory) Update(ctx context.Context) error

Update provides a mock function with given fields: ctx

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL