Documentation
¶
Overview ¶
Package fixture owns the shared YAML format for expression examples.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Case ¶
type Case struct {
Name string `yaml:"name"`
Expression string `yaml:"expression"`
Input any `yaml:"input,omitempty"`
At string `yaml:"at,omitempty"`
Expect *Expectation `yaml:"expect,omitempty"`
Error string `yaml:"error,omitempty"`
Benchmark []string `yaml:"benchmark,omitempty"`
}
Case is one expression fixture. Exactly one of Expect or Error must be set.
type Expectation ¶
Expectation describes the stable typed result envelope.
Click to show internal directories.
Click to hide internal directories.