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

Function TestObject_Schema

object_test.go:294–306  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

292}
293
294func TestObject_Schema(t *testing.T) {
295 reporter := newMockReporter(t)
296
297 data := map[string]interface{}{
298 "foo": "bar",
299 }
300
301 NewObject(reporter, data).Schema(`{"type": "object"}`).
302 chain.assert(t, success)
303
304 NewObject(reporter, data).Schema(`{"type": "array"}`).
305 chain.assert(t, failure)
306}
307
308func TestObject_Getters(t *testing.T) {
309 emptyData := map[string]interface{}{}

Callers

nothing calls this directly

Calls 4

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