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

Function Exactlyf

assert/assertion_format.go:207–212  ·  view source on GitHub ↗

Exactlyf asserts that two objects are equal in value and type. assert.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

205//
206// assert.Exactlyf(t, int32(123), int64(123), "error message %s", "formatted")
207func Exactlyf(t TestingT, expected interface{}, actual interface{}, msg string, args ...interface{}) bool {
208 if h, ok := t.(tHelper); ok {
209 h.Helper()
210 }
211 return Exactly(t, expected, actual, append([]interface{}{msg}, args...)...)
212}
213
214// Failf reports a failure through
215func Failf(t TestingT, failureMessage string, msg string, args ...interface{}) bool {

Callers 2

ExactlyfFunction · 0.92
ExactlyfMethod · 0.70

Calls 2

ExactlyFunction · 0.70
HelperMethod · 0.65

Tested by

no test coverage detected