IsType asserts that the specified objects are of the same type. a.IsType(&MyStruct{}, &MyStruct{})
(expectedType interface{}, object interface{}, msgAndArgs ...interface{})
| 906 | // |
| 907 | // a.IsType(&MyStruct{}, &MyStruct{}) |
| 908 | func (a *Assertions) IsType(expectedType interface{}, object interface{}, msgAndArgs ...interface{}) bool { |
| 909 | if h, ok := a.t.(tHelper); ok { |
| 910 | h.Helper() |
| 911 | } |
| 912 | return IsType(a.t, expectedType, object, msgAndArgs...) |
| 913 | } |
| 914 | |
| 915 | // IsTypef asserts that the specified objects are of the same type. |
| 916 | // |