IsTypef asserts that the specified objects are of the same type.
(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{})
| 1111 | |
| 1112 | // IsTypef asserts that the specified objects are of the same type. |
| 1113 | func IsTypef(t TestingT, expectedType interface{}, object interface{}, msg string, args ...interface{}) { |
| 1114 | if h, ok := t.(tHelper); ok { |
| 1115 | h.Helper() |
| 1116 | } |
| 1117 | if assert.IsTypef(t, expectedType, object, msg, args...) { |
| 1118 | return |
| 1119 | } |
| 1120 | t.FailNow() |
| 1121 | } |
| 1122 | |
| 1123 | // JSONEq asserts that two JSON strings are equivalent. |
| 1124 | // |