testutil

package
v1.0.0-test-9 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVariables

func CompareVariables(expected, got interface{}, tag string, diffs *[]FieldDiff, verbose bool) error

func CompareVariablesAndPrintResults

func CompareVariablesAndPrintResults(t *testing.T, expected, got interface{}, tag string)

func PrintFieldDiffs

func PrintFieldDiffs(t *testing.T, diffs []FieldDiff)

Types

type FieldDiff

type FieldDiff struct {
	Tag      string
	Expected interface{}
	Got      interface{}
}

Jump to

Keyboard shortcuts

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