mocks

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plotter

type Plotter struct {
	mock.Mock
}

Plotter is an autogenerated mock type for the Plotter type

func NewPlotter

func NewPlotter(t interface {
	mock.TestingT
	Cleanup(func())
}) *Plotter

NewPlotter creates a new instance of Plotter. 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 (*Plotter) EXPECT

func (_m *Plotter) EXPECT() *Plotter_Expecter

func (*Plotter) Plot

func (_m *Plotter) Plot(_a0 repository.Measurements, _a1 bool) (*vgimg.PngCanvas, error)

Plot provides a mock function with given fields: _a0, _a1

type Plotter_Expecter

type Plotter_Expecter struct {
	// contains filtered or unexported fields
}

func (*Plotter_Expecter) Plot

func (_e *Plotter_Expecter) Plot(_a0 interface{}, _a1 interface{}) *Plotter_Plot_Call

Plot is a helper method to define mock.On call

  • _a0 repository.Measurements
  • _a1 bool

type Plotter_Plot_Call

type Plotter_Plot_Call struct {
	*mock.Call
}

Plotter_Plot_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Plot'

func (*Plotter_Plot_Call) Return

func (_c *Plotter_Plot_Call) Return(_a0 *vgimg.PngCanvas, _a1 error) *Plotter_Plot_Call

func (*Plotter_Plot_Call) Run

func (_c *Plotter_Plot_Call) Run(run func(_a0 repository.Measurements, _a1 bool)) *Plotter_Plot_Call

func (*Plotter_Plot_Call) RunAndReturn

type Repository

type Repository struct {
	mock.Mock
}

Repository is an autogenerated mock type for the Repository type

func NewRepository

func NewRepository(t interface {
	mock.TestingT
	Cleanup(func())
}) *Repository

NewRepository creates a new instance of Repository. 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 (*Repository) EXPECT

func (_m *Repository) EXPECT() *Repository_Expecter

func (*Repository) Get

func (_m *Repository) Get(from time.Time, to time.Time) (repository.Measurements, error)

Get provides a mock function with given fields: from, to

type Repository_Expecter

type Repository_Expecter struct {
	// contains filtered or unexported fields
}

func (*Repository_Expecter) Get

func (_e *Repository_Expecter) Get(from interface{}, to interface{}) *Repository_Get_Call

Get is a helper method to define mock.On call

  • from time.Time
  • to time.Time

type Repository_Get_Call

type Repository_Get_Call struct {
	*mock.Call
}

Repository_Get_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Get'

func (*Repository_Get_Call) Return

func (*Repository_Get_Call) Run

func (_c *Repository_Get_Call) Run(run func(from time.Time, to time.Time)) *Repository_Get_Call

func (*Repository_Get_Call) RunAndReturn

Jump to

Keyboard shortcuts

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