MCPcopy Create free account
hub / github.com/gavv/httpexpect / TestBoolean_Schema

Function TestBoolean_Schema

boolean_test.go:136–144  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

134}
135
136func TestBoolean_Schema(t *testing.T) {
137 reporter := newMockReporter(t)
138
139 NewBoolean(reporter, true).Schema(`{"type": "boolean"}`).
140 chain.assert(t, success)
141
142 NewBoolean(reporter, true).Schema(`{"type": "object"}`).
143 chain.assert(t, failure)
144}
145
146func TestBoolean_IsEqual(t *testing.T) {
147 for _, data := range []bool{true, false} {

Callers

nothing calls this directly

Calls 4

newMockReporterFunction · 0.85
NewBooleanFunction · 0.85
assertMethod · 0.80
SchemaMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…