testutil

package
v0.0.0-...-d6856c1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEqual

func AssertEqual(t *testing.T, expected, actual interface{}, msg ...string) bool

AssertEqual asserts that expected and actual objects are equal, performing comparison recursively. For lists and maps, it iterates over expected values, ignoring additional values in actual object.

func IsObjectSubsetOf

func IsObjectSubsetOf(subset, of interface{}) error

IsObjectSubsetOf verifies if "subset" structure contains all fields described in "of" structure and throws an error in case if it doesn't.

func LogFatalIfError

func LogFatalIfError(f func() error)

LogFatalIfError executes given function and calls log.Fatal() if it returned an error.

func NewTestHTTPServer

func NewTestHTTPServer(h http.Handler) *httptest.Server

NewTestHTTPServer starts and returns new test HTTP 2 Server.

func NotNil

func NotNil() gomock.Matcher

NotNil matches any non-nil value.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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