Documentation
¶
Overview ¶
Package check is the whole check of a jig, offline: its shape (spec), what a test without a cluster can't do, the files it names, its kubectl blocks and external calls, its side effects, and its images. jig.Validate, jig.FromFile and the runner's import loader use it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromFile ¶
func FromFile(path string) (*spec.Declaration, error)
FromFile reads the jig at path and checks it. An error lists every problem.
func Validate ¶
func Validate(d *spec.Declaration) []error
Validate returns every problem with the jig t declares. Relative paths resolve against t.Dir. Templates are checked against KEL's functions and the jig's own.
func ValidateWith ¶
func ValidateWith(d *spec.Declaration, funcs template.FuncMap) []error
ValidateWith is Validate for a caller that runs with its own template functions (Options.Functions): templates are checked against funcs (KEL's when nil) and the jig's own.
Types ¶
This section is empty.