gomock

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2020 License: MPL-2.0, MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextNonNil

func ContextNonNil() gomock.Matcher

ContextNonNil checks if the value is a context.Context and is non-nil.

func ErrShortRegexp

func ErrShortRegexp(re *regexp.Regexp) gomock.Matcher

ErrShortRegexp compares the regular expression against an expected error's Error() string.

func NonSut

func NonSut() interface{}

NonSut may be clearer than nil as a Return parameter in order to "document" that parameter as outside the SUT in the test case.

Types

This section is empty.

Jump to

Keyboard shortcuts

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