| 39 | namespace kudu { |
| 40 | |
| 41 | TEST(JsonReaderTest, Corrupt) { |
| 42 | JsonReader r(""); |
| 43 | Status s = r.Init(); |
| 44 | ASSERT_TRUE(s.IsCorruption()); |
| 45 | ASSERT_STR_CONTAINS( |
| 46 | s.ToString(), "JSON text is corrupt: The document is empty."); |
| 47 | } |
| 48 | |
| 49 | TEST(JsonReaderTest, Empty) { |
| 50 | JsonReader r("{}"); |
nothing calls this directly
no test coverage detected