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{})
| 502 | // |
| 503 | // require.Exactlyf(t, int32(123), int64(123), "error message %s", "formatted") |
| 504 | func 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 |
| 515 | func Fail(t TestingT, failureMessage string, msgAndArgs ...interface{}) { |