Documentation ¶
Index ¶
- Variables
- func CompareErrorMessages() cmp.Option
- func CompareLoggers() cmp.Option
- func ComparePGPKeys() cmp.Option
- func CompareRSAPrivateKeys() cmp.Option
- func ExportAll() cmp.Option
- func Golden(t *testing.T, golden, result string)
- func IgnoreFunctions() cmp.Option
- func Source(t *testing.T, s *source.Source, makeURL func(version, asset string) string)
- func SourceWant() []*source.Release
- func Target(t *testing.T, tgt target.Target, makeURL func(string) string, ...)
- type TargetOption
Constants ¶
This section is empty.
Variables ¶
View Source
var Update, _ = strconv.ParseBool(os.Getenv("UPDATE_GOLDEN")) //nolint:gochecknoglobals
Update indicates whether golden files should be updated.
Functions ¶
func CompareErrorMessages ¶ added in v0.3.0
CompareErrorMessages compares errors by message.
func CompareLoggers ¶ added in v0.3.0
CompareLoggers compares instances of log.Logger.
func ComparePGPKeys ¶ added in v0.3.0
ComparePGPKeys compares PGP keys' fingerprints.
func CompareRSAPrivateKeys ¶ added in v0.4.0
CompareRSAPrivateKeys compares RSA private keys.
func Golden ¶ added in v0.4.0
Golden compares the result directory to the golden directory and updates the golden directory if the UPDATE_GOLDEN environment variable is set.
func IgnoreFunctions ¶ added in v0.3.0
IgnoreFunctions ignores all functions.
func SourceWant ¶ added in v0.3.0
Types ¶
type TargetOption ¶ added in v0.3.0
type TargetOption func(*targetOptions)
func WithDelay ¶ added in v0.3.0
func WithDelay(d time.Duration) TargetOption
WithDelay adds a delay between writing, updating & reading, to allow for services where the changes aren't available instantly.
func WithIgnoreRemoveNotFound ¶ added in v0.3.0
func WithIgnoreRemoveNotFound() TargetOption
WithIgnoreRemoveNotFound disables testing if removing a non-existent file returns an error.
Click to show internal directories.
Click to hide internal directories.