deep

package module
v0.0.0-...-cc936c6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2023 License: MIT Imports: 7 Imported by: 0

README

deep

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t TestingT, want any, got any)

func Diff

func Diff(want, got any) string

Types

type Matcher

type Matcher interface {
	Matches(x any) bool
	String() string
}

Matcher compatible to gomock.Matcher

func InDelta

func InDelta(want any, delta float64) Matcher

func JSON

func JSON(want any) Matcher

func SameNumber

func SameNumber(want any) Matcher

type RecursiveMatcher

type RecursiveMatcher interface {
	Matcher
	MatchesRecursively(x any, options ...cmp.Option) bool
}

func InAnyOrder

func InAnyOrder[T any](want []T) RecursiveMatcher

func SuperHashOf

func SuperHashOf(want map[string]any) RecursiveMatcher

type TestingT

type TestingT interface {
	Errorf(format string, args ...any)
}

Jump to

Keyboard shortcuts

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