MCPcopy Index your code
hub / github.com/gavv/httpexpect / TestObject_Path

Function TestObject_Path

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

Source from the content-addressed store, hash-verified

275}
276
277func TestObject_Path(t *testing.T) {
278 reporter := newMockReporter(t)
279
280 m := map[string]interface{}{
281 "foo": 123.0,
282 "bar": []interface{}{"456", 789.0},
283 "baz": map[string]interface{}{
284 "a": "b",
285 },
286 }
287
288 value := NewObject(reporter, m)
289
290 assert.Equal(t, m, value.Path("$").Raw())
291 value.chain.assert(t, success)
292}
293
294func TestObject_Schema(t *testing.T) {
295 reporter := newMockReporter(t)

Callers

nothing calls this directly

Calls 6

PathMethod · 0.95
newMockReporterFunction · 0.85
NewObjectFunction · 0.85
assertMethod · 0.80
EqualMethod · 0.45
RawMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…