Discover Packages
encr.dev
pkg
golden
package
Version:
v0.23.0
Opens a new window with list of versions in this module.
Published: Apr 1, 2022
License: MPL-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Test checks the test output against the golden file.
If -golden-update was passed to "go test", it writes new golden files instead.
TestMain sets up the golden testing functionality for the package.
Packages that want to integrate golden testing should themselves
implement TestMain and call this function.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.