test

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockOutputStore

func NewMockOutputStore() *mockOutputStore

func NewMockStore added in v0.4.0

func NewMockStore() *mockStore

func WaitForCondition

func WaitForCondition(t *testing.T, f func() bool, wait time.Duration, msg string)

Types

type MockRunner

type MockRunner struct {
	OnRun    func(t *task.Task) error
	OnCancel func()
	// contains filtered or unexported fields
}

func (*MockRunner) Cancel

func (m *MockRunner) Cancel()

func (*MockRunner) Finish

func (m *MockRunner) Finish()

func (*MockRunner) Run

func (m *MockRunner) Run(t *task.Task) error

func (*MockRunner) SetOnTaskChange

func (m *MockRunner) SetOnTaskChange(f func(t *task.Task))

Jump to

Keyboard shortcuts

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