Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoldenFile ¶
type GoldenFile struct {
// contains filtered or unexported fields
}
GoldenFile helps perform snapshot testing, to avoid long test payloads in test files.
func New ¶
func New(basePath string, filePath string) *GoldenFile
func (*GoldenFile) Read ¶
func (gf *GoldenFile) Read() ([]byte, error)
func (*GoldenFile) Update ¶
func (gf *GoldenFile) Update(data []byte) error
Click to show internal directories.
Click to hide internal directories.