MCPcopy
hub / github.com/stretchr/testify / AnythingOfType

Function AnythingOfType

mock/mock.go:818–820  ·  view source on GitHub ↗

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: args.Assert(t, AnythingOfType("string"), AnythingOfType("int"))

(t string)

Source from the content-addressed store, hash-verified

816//
817// args.Assert(t, AnythingOfType("string"), AnythingOfType("int"))
818func AnythingOfType(t string) AnythingOfTypeArgument {
819 return anythingOfTypeArgument(t)
820}
821
822// IsTypeArgument is a struct that contains the type of an argument
823// for use when type checking. This is an alternative to [AnythingOfType].

Calls 1

anythingOfTypeArgumentTypeAlias · 0.85