IsType asserts that the specified objects are of the same type.
(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{})
| 1100 | |
| 1101 | // IsType asserts that the specified objects are of the same type. |
| 1102 | func IsType(t TestingT, expectedType interface{}, object interface{}, msgAndArgs ...interface{}) { |
| 1103 | if h, ok := t.(tHelper); ok { |
| 1104 | h.Helper() |
| 1105 | } |
| 1106 | if assert.IsType(t, expectedType, object, msgAndArgs...) { |
| 1107 | return |
| 1108 | } |
| 1109 | t.FailNow() |
| 1110 | } |
| 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{}) { |
searching dependent graphs…