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

Function Exactly

require/require.go:491–499  ·  view source on GitHub ↗

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

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

Source from the content-addressed store, hash-verified

489//
490// require.Exactly(t, int32(123), int64(123))
491func Exactly(t TestingT, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
492 if h, ok := t.(tHelper); ok {
493 h.Helper()
494 }
495 if assert.Exactly(t, expected, actual, msgAndArgs...) {
496 return
497 }
498 t.FailNow()
499}
500
501// Exactlyf asserts that two objects are equal in value and type.
502//

Callers 2

ExactlyMethod · 0.70
TestExactlyFunction · 0.70

Calls 3

ExactlyFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by 1

TestExactlyFunction · 0.56