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

Method Is

mock/mock.go:942–949  ·  view source on GitHub ↗

Is gets whether the objects match the arguments specified.

(objects ...interface{})

Source from the content-addressed store, hash-verified

940
941// Is gets whether the objects match the arguments specified.
942func (args Arguments) Is(objects ...interface{}) bool {
943 for i, obj := range args {
944 if obj != objects[i] {
945 return false
946 }
947 }
948 return true
949}
950
951// Diff gets a string describing the differences between the arguments
952// and the specified objects.

Callers 3

Test_Arguments_IsFunction · 0.80
ErrorIsFunction · 0.80
NotErrorIsFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_Arguments_IsFunction · 0.64