Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.