test

package
v0.0.0-...-7ff3c91 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ColorMachineMock

type ColorMachineMock struct{}

func (*ColorMachineMock) Pluck

func (c *ColorMachineMock) Pluck() int

type ConfigManagerMock

type ConfigManagerMock struct {
	Tasks       []map[string]interface{}
	SingleValue map[string]string
}

func (*ConfigManagerMock) Get

func (cm *ConfigManagerMock) Get(key string) interface{}

func (*ConfigManagerMock) GetString

func (cm *ConfigManagerMock) GetString(key string) string

func (*ConfigManagerMock) UnmarshalKey

func (cm *ConfigManagerMock) UnmarshalKey(key string, rawVal interface{}) error

type CronMock

type CronMock struct {
	WasStarted bool
	WasStopped bool
	Jobs       []cron.Job
}

CronMock mocks the behaviour of cron.Cron

func (*CronMock) AddJob

func (m *CronMock) AddJob(schedule string, job cron.Job) error

func (*CronMock) Start

func (m *CronMock) Start()

func (*CronMock) Stop

func (m *CronMock) Stop()

type EngineMock

type EngineMock struct {
	Tasks []*crontainer.Task
}

func (*EngineMock) AddTask

func (e *EngineMock) AddTask(task *crontainer.Task) error

func (*EngineMock) Start

func (e *EngineMock) Start()

func (*EngineMock) Stop

func (e *EngineMock) Stop()

Jump to

Keyboard shortcuts

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