testutil

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filepath

func Filepath(t *testing.T, name string) string

func ReadJob

func ReadJob(t *testing.T, name string) *api.Job

func ReadJobJson

func ReadJobJson(t *testing.T, name string) string

Types

type MockMutator

type MockMutator struct {
	mock.Mock
}

func (*MockMutator) Mutate

func (m *MockMutator) Mutate(job *api.Job) (out *api.Job, warnings []error, err error)

func (*MockMutator) Name

func (m *MockMutator) Name() string

type MockValidator

type MockValidator struct {
	mock.Mock
}

func (*MockValidator) Name

func (m *MockValidator) Name() string

func (*MockValidator) Validate

func (m *MockValidator) Validate(job *api.Job) (warnings []error, err error)

Jump to

Keyboard shortcuts

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