Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assertion ¶
func AssertionChain ¶
AssertionChain is a helper function to create an assertion that runs multiple assertions in sequence.
func LoadSnapshots ¶
LoadSnapshots returns an assertion that will compare the outputs of a synthesizer function with the expected outputs stored in snapshot files.
Scenarios that do not have a corresponding snapshot file will be ignored. To generate snapshots, set the ENO_GEN_SNAPSHOTS environment variable to a non-empty value.
So, to bootstrap snapshots for a given fixture/scenario: create an empty snapshot file that matches the name of the scenario (or fixture if using LoadScenarios), and run the tests with ENO_GEN_SNAPSHOTS=true.
Click to show internal directories.
Click to hide internal directories.