package
0.1.0-alpha3
Repository: https://github.com/segmentstream/testify.git
Documentation: pkg.go.dev
# Functions
AnythingOfType returns an AnythingOfTypeArgument object containing the name of the type to check for.
AssertExpectationsForObjects asserts that everything specified with On and Return of the specified objects was in fact called as expected.
IsType returns an IsTypeArgument object containing the type to check for.
MatchedBy can be used to match a mock call based on only certain properties from a complex struct or some calculation.
# Constants
Anything is used in Diff and Assert when the argument being tested shouldn't be taken into consideration.
# Structs
Call represents a method call and is used for setting expectations, as well as recording activity.
IsTypeArgument is a struct that contains the type of an argument for use when type checking.
Mock is the workhorse used to track activity on another object.
# Interfaces
TestingT is an interface wrapper around *testing.T.
# Type aliases
AnythingOfTypeArgument is a string that contains the type of an argument for use when type checking.
Arguments holds an array of method arguments or return values.