| 27 | class EmitterTest : public ::testing::Test { |
| 28 | protected: |
| 29 | void ExpectEmit(const std::string& expected) { |
| 30 | EXPECT_EQ(expected, out.c_str()); |
| 31 | EXPECT_TRUE(out.good()) << "Emitter raised: " << out.GetLastError(); |
| 32 | if (expected == out.c_str()) { |
| 33 | std::stringstream stream(expected); |
| 34 | Parser parser; |
| 35 | NullEventHandler handler; |
| 36 | parser.HandleNextDocument(handler); |
| 37 | } |
| 38 | } |
| 39 | |
| 40 | Emitter out; |
| 41 | }; |
nothing calls this directly
no test coverage detected