testutil

package
v0.0.0-...-4a20579 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2020 License: Apache-2.0 Imports: 17 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 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