Documentation ¶
Overview ¶
Package fixture is an internal package providing sample images and expected rendering results. Verifying that asciist rendered an image "correctly" is subjective and requires human eyes, so we use a "snapshot testing" approach where the output of a judged-good run is saved and used for regression testing. (see https://facebook.github.io/jest/docs/snapshot-testing.html)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadFixture ¶
LoadFixture loads a fixture image bundled with this package. The width used in rendering is determined automatically from the length of the first line of the saved (known-good) output. This must be called from a working directory adjacent to the fixture directory.
func ReadFixture ¶
ReadFixture loads a fixture image bundled with this package. The width used in rendering is determined automatically from the length of the first line of the saved (known-good) output. This must be called from a working directory adjacent to the fixture directory.
Types ¶
This section is empty.