(t *testing.T)
| 292 | } |
| 293 | |
| 294 | func 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 | |
| 308 | func TestObject_Getters(t *testing.T) { |
| 309 | emptyData := map[string]interface{}{} |
nothing calls this directly
no test coverage detected
searching dependent graphs…