MCPcopy
hub / github.com/expr-lang/expr / TestImplementsWrapper

Function TestImplementsWrapper

internal/testify/assert/forward_assertions_test.go:10–19  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestImplementsWrapper(t *testing.T) {
11 assert := New(new(testing.T))
12
13 if !assert.Implements((*AssertionTesterInterface)(nil), new(AssertionTesterConformingObject)) {
14 t.Error("Implements method should return true: AssertionTesterConformingObject implements AssertionTesterInterface")
15 }
16 if assert.Implements((*AssertionTesterInterface)(nil), new(AssertionTesterNonConformingObject)) {
17 t.Error("Implements method should return false: AssertionTesterNonConformingObject does not implements AssertionTesterInterface")
18 }
19}
20
21func TestIsTypeWrapper(t *testing.T) {
22 assert := New(new(testing.T))

Callers

nothing calls this directly

Calls 3

NewFunction · 0.70
ImplementsMethod · 0.45
ErrorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…