MCPcopy Index your code
hub / github.com/stretchr/testify / TestNotIsType

Function TestNotIsType

assert/assertions_test.go:575–586  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

573}
574
575func TestNotIsType(t *testing.T) {
576 t.Parallel()
577
578 mockT := new(testing.T)
579
580 if !IsNotType(mockT, new(AssertionTesterConformingObject), new(AssertionTesterNonConformingObject)) {
581 t.Error("NotIsType should return true: AssertionTesterConformingObject is not the same type as AssertionTesterNonConformingObject")
582 }
583 if IsNotType(mockT, new(AssertionTesterConformingObject), new(AssertionTesterConformingObject)) {
584 t.Error("NotIsType should return false: AssertionTesterConformingObject is the same type as AssertionTesterConformingObject")
585 }
586}
587
588func TestEqual(t *testing.T) {
589 t.Parallel()

Callers

nothing calls this directly

Calls 2

IsNotTypeFunction · 0.70
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…