snapshotx

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SnapshotT

func SnapshotT(t *testing.T, actual interface{}, except ...ExceptOpt)

func SnapshotTExcept

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

SnapshotTExcept

DEPRECATED: please use SnapshotT instead

func SnapshotTExceptMatchingKeys

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.

DEPRECATED: please use SnapshotT instead

Types

type ExceptOpt

type ExceptOpt interface {
	// contains filtered or unexported methods
}

func ExceptNestedKeys

func ExceptNestedKeys(nestedKeys ...string) ExceptOpt

func ExceptPaths

func ExceptPaths(keys ...string) ExceptOpt

Jump to

Keyboard shortcuts

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