(t *testing.T)
| 275 | } |
| 276 | |
| 277 | func 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 | |
| 294 | func TestObject_Schema(t *testing.T) { |
| 295 | reporter := newMockReporter(t) |