mocks

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 6 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 RedisClient added in v0.12.0

type RedisClient struct {
	mock.Mock
}

RedisClient is an autogenerated mock type for the RedisClient type

func NewRedisClient added in v0.12.0

func NewRedisClient(t interface {
	mock.TestingT
	Cleanup(func())
}) *RedisClient

NewRedisClient creates a new instance of RedisClient. 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 (*RedisClient) EXPECT added in v0.12.0

func (_m *RedisClient) EXPECT() *RedisClient_Expecter

func (*RedisClient) Get added in v0.12.0

func (_m *RedisClient) Get(ctx context.Context, key string) *redis.StringCmd

Get provides a mock function with given fields: ctx, key

func (*RedisClient) Set added in v0.12.0

func (_m *RedisClient) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) *redis.StatusCmd

Set provides a mock function with given fields: ctx, key, value, expiration

type RedisClient_Expecter added in v0.12.0

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

func (*RedisClient_Expecter) Get added in v0.12.0

func (_e *RedisClient_Expecter) Get(ctx interface{}, key interface{}) *RedisClient_Get_Call

Get is a helper method to define mock.On call

  • ctx context.Context
  • key string

func (*RedisClient_Expecter) Set added in v0.12.0

func (_e *RedisClient_Expecter) Set(ctx interface{}, key interface{}, value interface{}, expiration interface{}) *RedisClient_Set_Call

Set is a helper method to define mock.On call

  • ctx context.Context
  • key string
  • value interface{}
  • expiration time.Duration

type RedisClient_Get_Call added in v0.12.0

type RedisClient_Get_Call struct {
	*mock.Call
}

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

func (*RedisClient_Get_Call) Return added in v0.12.0

func (*RedisClient_Get_Call) Run added in v0.12.0

func (_c *RedisClient_Get_Call) Run(run func(ctx context.Context, key string)) *RedisClient_Get_Call

func (*RedisClient_Get_Call) RunAndReturn added in v0.12.0

type RedisClient_Set_Call added in v0.12.0

type RedisClient_Set_Call struct {
	*mock.Call
}

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

func (*RedisClient_Set_Call) Return added in v0.12.0

func (*RedisClient_Set_Call) Run added in v0.12.0

func (_c *RedisClient_Set_Call) Run(run func(ctx context.Context, key string, value interface{}, expiration time.Duration)) *RedisClient_Set_Call

func (*RedisClient_Set_Call) RunAndReturn added in v0.12.0

func (_c *RedisClient_Set_Call) RunAndReturn(run func(context.Context, string, interface{}, time.Duration) *redis.StatusCmd) *RedisClient_Set_Call

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