| 50 | }; |
| 51 | |
| 52 | TEST_F(YamlReaderTest, FileNotExist) { |
| 53 | YamlReader r("YamlReaderTest.NotExist"); |
| 54 | Status s = r.Init(); |
| 55 | ASSERT_TRUE(s.IsCorruption()) << s.ToString(); |
| 56 | ASSERT_STR_CONTAINS( |
| 57 | s.ToString(), "YAML::LoadFile error"); |
| 58 | } |
| 59 | |
| 60 | TEST_F(YamlReaderTest, Corruption) { |
| 61 | unique_ptr<YamlReader> r; |