Documentation
¶
Index ¶
Constants ¶
View Source
const (
CI_MODE_ENV_VAR = "CI_MODE"
)
View Source
const UpdateSnapshotEnvVariableName = "UPDATE_SNAPSHOTS"
Variables ¶
This section is empty.
Functions ¶
func AssertMatchesSnapshot ¶
func AssertMatchesSnapshot(t *testing.T, snapshotName string, actualSnapshot *SnapshotType)
Types ¶
type SnapshotDataType ¶
type SnapshotDataType string
const ( SnapshotDataTypeText SnapshotDataType = "TEXT" SnapshotDataTypeImage SnapshotDataType = "IMAGE" )
type SnapshotType ¶
type SnapshotType struct { DataType SnapshotDataType Value string OnBadMatch func(t *testing.T, expected string) error `json:"-"` }
func NewImageSnapshot ¶
func NewImageSnapshot(img image.Image) *SnapshotType
func NewTextSnapshot ¶
func NewTextSnapshot(text string) *SnapshotType
Click to show internal directories.
Click to hide internal directories.