Documentation
¶
Index ¶
- Variables
- func AssertSnapshotDiff(t TestingT, content string, save ...bool)
- func AssertSnapshotPgDumpDiff(t TestingT, schemaName string, db schema.DatabaseCredentials, id string, ...)
- func EnableSnapshotFor(t TestingT)
- func EnableSnapshotForAll()
- func EnvOrDefault(key, defaultValue string) string
- func MaySnapshotSavePgDump(t TestingT, schemaName string, db schema.DatabaseCredentials, id string, ...)
- type TestingT
Constants ¶
This section is empty.
Variables ¶
View Source
var EnableSnapshot = map[string]struct{}{}
EnableSnapshot is a map to enable snapshot for a specific test. The key can be either: - the name of the test (t.Name()) - "all" to enable all snapshots
Functions ¶
func AssertSnapshotDiff ¶
func EnableSnapshotFor ¶
func EnableSnapshotFor(t TestingT)
func EnableSnapshotForAll ¶
func EnableSnapshotForAll()
func EnvOrDefault ¶
func MaySnapshotSavePgDump ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.