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

Function TestNumber_Schema

number_test.go:158–166  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

156}
157
158func TestNumber_Schema(t *testing.T) {
159 reporter := newMockReporter(t)
160
161 NewNumber(reporter, 123.0).Schema(`{"type": "number"}`).
162 chain.assert(t, success)
163
164 NewNumber(reporter, 123.0).Schema(`{"type": "object"}`).
165 chain.assert(t, failure)
166}
167
168func TestNumber_IsEqual(t *testing.T) {
169 t.Run("basic", func(t *testing.T) {

Callers

nothing calls this directly

Calls 4

newMockReporterFunction · 0.85
NewNumberFunction · 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…