Documentation ¶ Overview ¶ Package predicate evaluates assert predicates (`==`, `contains`, `isInteger`, …, optionally negated with `not`). Index ¶ func Eval(p *syntax.Predicate, actual value.Value, env *template.Env) error func Value(v syntax.PredicateValue, span syntax.Span, env *template.Env) (value.Value, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Eval ¶ func Eval(p *syntax.Predicate, actual value.Value, env *template.Env) error Eval evaluates p against the actual value (nil when the query returned nothing). It returns nil when the assert holds, a *runerr.Error of kind AssertFailure when it does not, or another *runerr.Error when the expected value cannot be evaluated. func Value ¶ func Value(v syntax.PredicateValue, span syntax.Span, env *template.Env) (value.Value, error) Value evaluates a predicate value; span locates errors on a literal. Types ¶ This section is empty. Source Files ¶ View all Source files eval.gotype_checks.go Click to show internal directories. Click to hide internal directories.