Documentation ¶
Index ¶
- func Record(t testing.TB, got interface{}) interface{}
- func Take(t testing.TB, got interface{}, options ...func(*Config)) interface{}
- func WithForceUpdate() func(*Config)
- func WithMetadata(metadata map[string]interface{}) func(*Config)
- func WithReplaceMap(repMap map[string]interface{}) func(*Config)
- func WithReplaceMapNormalized(repMap map[string]interface{}) func(*Config)
- func WithUpdateByEnvvar(s string) func(*Config)
- type Config
- type Extra
- type Loader
- type Recorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithReplaceMap ¶
WithReplaceMap replace data when loading stored data
func WithReplaceMapNormalized ¶
WithReplaceMapNormalized replace data when loading stored data
Types ¶
type Config ¶
type Config struct { Recorder *Recorder Extra *Extra Overwrite bool // contains filtered or unexported fields }
Config :
type Extra ¶
type Extra struct { ReplaceMap map[string]interface{} // data replacement setting, on loading Metadata map[string]interface{} }
Extra is extra data
Click to show internal directories.
Click to hide internal directories.