testutil

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 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 HelloMutator added in v0.0.3

type HelloMutator struct {
	MutatorName string
}

func (*HelloMutator) Mutate added in v0.0.3

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

func (*HelloMutator) Name added in v0.0.3

func (h *HelloMutator) Name() string

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