mocks

package
v0.0.0-...-c8d90df Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskCfgCache

type TaskCfgCache struct {
	mock.Mock
}

TaskCfgCache is an autogenerated mock type for the TaskCfgCache type

func FixedTasksCfg

func FixedTasksCfg(cfg *specs.TasksCfg) *TaskCfgCache

FixedTasksCfg returns a TaskCfgCache which always produces the given TasksCfg instance.

func NewTaskCfgCache

func NewTaskCfgCache(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskCfgCache

NewTaskCfgCache creates a new instance of TaskCfgCache. 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 TasksAlwaysDefined

func TasksAlwaysDefined(taskNames ...string) *TaskCfgCache

TasksAlwaysDefined returns a TaskCfgCache which always produces a TasksCfg with the given tasks defined. It does not provide details for the tasks.

func (*TaskCfgCache) Cleanup

func (_m *TaskCfgCache) Cleanup(ctx context.Context, period time.Duration) error

Cleanup provides a mock function with given fields: ctx, period

func (*TaskCfgCache) Close

func (_m *TaskCfgCache) Close() error

Close provides a mock function with given fields:

func (*TaskCfgCache) Get

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

func (*TaskCfgCache) Set

func (_m *TaskCfgCache) Set(ctx context.Context, rs types.RepoState, cfg *specs.TasksCfg, storedErr error) error

Set provides a mock function with given fields: ctx, rs, cfg, storedErr

func (*TaskCfgCache) SetIfUnset

SetIfUnset provides a mock function with given fields: ctx, rs, fn

Jump to

Keyboard shortcuts

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