IsTypef asserts that the specified objects are of the same type. assert.IsTypef(t, &MyStruct{}, &MyStruct{}, "error message %s", "formatted")
(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{})
| 459 | // |
| 460 | // assert.IsTypef(t, &MyStruct{}, &MyStruct{}, "error message %s", "formatted") |
| 461 | func IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{}) bool { |
| 462 | if h, ok := t.(tHelper); ok { |
| 463 | h.Helper() |
| 464 | } |
| 465 | return IsType(t, expectedType, object, append([]interface{}{msg}, args...)...) |
| 466 | } |
| 467 | |
| 468 | // JSONEqf asserts that two JSON strings are equivalent. |
| 469 | // |