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

Function Exactlyf

require/require.go:504–512  ·  view source on GitHub ↗

Exactlyf asserts that two objects are equal in value and type. require.Exactlyf(t, int32(123), int64(123), "error message %s", "formatted")

(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{})

Source from the content-addressed store, hash-verified

502//
503// require.Exactlyf(t, int32(123), int64(123), "error message %s", "formatted")
504func Exactlyf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) {
505 if h, ok := t.(tHelper); ok {
506 h.Helper()
507 }
508 if assert.Exactlyf(t, expected, actual, msg, args...) {
509 return
510 }
511 t.FailNow()
512}
513
514// Fail reports a failure through
515func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) {

Callers 1

ExactlyfMethod · 0.70

Calls 3

ExactlyfFunction · 0.92
HelperMethod · 0.65
FailNowMethod · 0.65

Tested by

no test coverage detected