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

Method AddEntry

lib/yamlcpp/test/integration/encoding_test.cpp:112–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

110 std::vector<std::string> m_entries;
111
112 void AddEntry(EncodingFn encoding, int startCh, int endCh) {
113 encoding(m_yaml, '-');
114 encoding(m_yaml, ' ');
115 encoding(m_yaml, '|');
116 encoding(m_yaml, '\n');
117 encoding(m_yaml, ' ');
118 encoding(m_yaml, ' ');
119
120 std::stringstream entry;
121 for (int ch = startCh; ch <= endCh; ++ch) {
122 encoding(m_yaml, ch);
123 EncodeToUtf8(entry, ch);
124 }
125 encoding(m_yaml, '\n');
126 EncodeToUtf8(entry, '\n');
127
128 m_entries.push_back(entry.str());
129 }
130};
131
132TEST_F(EncodingTest, UTF8_noBOM) {

Callers

nothing calls this directly

Calls 3

EncodeToUtf8Function · 0.85
push_backMethod · 0.45
strMethod · 0.45

Tested by

no test coverage detected