snapshotx

package
v0.0.334 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SnapshotTExcept

func SnapshotTExcept(t *testing.T, actual interface{}, except []string)

func SnapshotTExceptMatchingKeys added in v0.0.326

func SnapshotTExceptMatchingKeys(t *testing.T, actual interface{}, matches []string)

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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