MCPcopy Create free account
hub / github.com/apache/trafficserver / ExpectEmit

Method ExpectEmit

lib/yamlcpp/test/integration/emitter_test.cpp:29–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27class 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};

Callers

nothing calls this directly

Calls 4

HandleNextDocumentMethod · 0.80
c_strMethod · 0.45
goodMethod · 0.45
GetLastErrorMethod · 0.45

Tested by

no test coverage detected