request

package
v0.0.0-...-08dfbac Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMock

func GetMock() *mock

GetMock returns a thread safe mock struct singleton to intercept calls

Types

type AnythingOfTypeArgument deprecated

type AnythingOfTypeArgument = anythingOfTypeArgument

AnythingOfTypeArgument contains the type of an argument for use when type checking. Used in Diff and Assert.

Deprecated: this is an implementation detail that must not be used. Use AnythingOfType instead.

func AnythingOfType

func AnythingOfType(t string) AnythingOfTypeArgument

AnythingOfType returns a special value containing the name of the type to check for. The type name will be matched against the type name returned by reflect.Type.String.

Used in Diff and Assert.

For example:

Assert(t, AnythingOfType("string"), AnythingOfType("int"))

type RecordedCall

type RecordedCall struct {
	Service   string
	Operation string
	Params    interface{}
	Response  interface{}
}

Jump to

Keyboard shortcuts

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