Documentation ¶
Index ¶
- func SnapshotT(t *testing.T, actual interface{}, except ...ExceptOpt)
- func SnapshotTExcept(t *testing.T, actual interface{}, except []string)
- func SnapshotTExceptMatchingKeys(t *testing.T, actual interface{}, matches []string)
- func SnapshotTJSON(t *testing.T, compare []byte, except ...ExceptOpt)
- func SnapshotTJSONString(t *testing.T, str string, except ...ExceptOpt)
- type ExceptOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SnapshotTExceptMatchingKeys ¶ added in v0.0.326
SnapshotTExceptMatchingKeys works like SnapshotTExcept but deletes keys that match the given matches recursively.
So instead of having deeply nested keys like `foo.bar.baz.0.key_to_delete` you can have `key_to_delete` and all occurences of `key_to_delete` will be removed.
DEPRECATED: please use SnapshotT instead
func SnapshotTJSON ¶ added in v0.0.545
Types ¶
type ExceptOpt ¶ added in v0.0.382
type ExceptOpt interface {
// contains filtered or unexported methods
}
func ExceptNestedKeys ¶ added in v0.0.382
func ExceptPaths ¶ added in v0.0.382
func WithReplacement ¶ added in v0.0.617
Click to show internal directories.
Click to hide internal directories.