Versions in this module Expand all Collapse all v2 v2.6.0 Sep 30, 2019 Changes in this version + var Global = NewDefaultConfig() + func Equal(vx, vy interface{}) bool + func Snapshot(i ...interface{}) error + func SnapshotJSON(i ...interface{}) error + func SnapshotJSONT(t TestingT, i ...interface{}) + func SnapshotMulti(snapshotID string, i ...interface{}) error + func SnapshotT(t TestingT, i ...interface{}) + func Unmarshal(b []byte) (interface{}, error) + type Config struct + func New(configurators ...Configurator) *Config + func NewDefaultConfig() *Config + func (c *Config) Snapshot(i ...interface{}) error + func (c *Config) SnapshotJSONT(t TestingT, i ...interface{}) + func (c *Config) SnapshotMulti(snapshotID string, i ...interface{}) error + func (c *Config) SnapshotT(t TestingT, i ...interface{}) + func (c *Config) WithOptions(configurators ...Configurator) *Config + type Configurator func(*Config) + func CreateNewAutomatically(createNewAutomatically bool) Configurator + func EnvVariableName(name string) Configurator + func FailOnUpdate(failOnUpdate bool) Configurator + func FatalOnMismatch(fatalOnMismatch bool) Configurator + func ShouldUpdate(f func() bool) Configurator + func SnapshotFileExtension(snapshotFileExtension string) Configurator + func SnapshotSubdirectory(name string) Configurator + type TestingT interface + Error func(args ...interface{}) + Failed func() bool + Fatal func(args ...interface{}) + Helper func() + Name func() string Other modules containing this package github.com/GraphCMS/cupaloy-json