MCPcopy Index your code
hub / github.com/expr-lang/expr / Exactly

Function Exactly

internal/testify/assert/assertions.go:654–668  ·  view source on GitHub ↗

Exactly asserts that two objects are equal in value and type. assert.Exactly(t, int32(123), int64(123))

(t TestingT, expected, actual interface{}, msgAndArgs ...interface{})

Source from the content-addressed store, hash-verified

652//
653// assert.Exactly(t, int32(123), int64(123))
654func Exactly(t TestingT, expected, actual interface{}, msgAndArgs ...interface{}) bool {
655 if h, ok := t.(tHelper); ok {
656 h.Helper()
657 }
658
659 aType := reflect.TypeOf(expected)
660 bType := reflect.TypeOf(actual)
661
662 if aType != bType {
663 return Fail(t, fmt.Sprintf("Types expected to match exactly\n\t%v != %v", aType, bType), msgAndArgs...)
664 }
665
666 return Equal(t, expected, actual, msgAndArgs...)
667
668}
669
670// NotNil asserts that the specified object is not nil.
671//

Callers 4

ExactlyFunction · 0.92
ExactlyfFunction · 0.70
TestExactlyFunction · 0.70
ExactlyMethod · 0.70

Calls 4

SprintfMethod · 0.80
FailFunction · 0.70
EqualFunction · 0.70
HelperMethod · 0.45

Tested by 1

TestExactlyFunction · 0.56

Used in the wild real call sites across dependent graphs

searching dependent graphs…