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{})
| 489 | // |
| 490 | // require.Exactly(t, int32(123), int64(123)) |
| 491 | func 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 | // |