snapshot

package
v0.0.46 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertCommitter

func AssertCommitter(t *testing.T, snapshotPath string, committer *state.DryRunCommitter)

AssertCommitter asserts that the snapshotPath matches the state in a DryRunCommitter. This assert always passes if the env var UPDATESNAPSHOT == true

func AssertEqual

func AssertEqual(t *testing.T, snapshotDir string, actualFiles []core.ResourceFile)

AssertEqual asserts that a snapshot (aka "gold files") are equal to the generated resource files

func CreateCommitter

func CreateCommitter(snapshotPath string) (state.Committer, error)

func ShouldUpdate

func ShouldUpdate() bool

ShouldUpdate checks for the UPDATESNAPSHOT env var to determine if snapshot content should be updated

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL