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

Method testFormat

src/tscore/unit_tests/test_Extendible.cc:244–253  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

242 }
243
244 static const string
245 testFormat()
246 {
247 const size_t intenal_size = sizeof(Derived) - sizeof(ext::Extendible<Derived>::short_ptr_t);
248 std::stringstream format;
249 format << "\n 7Derived | EXT | 1b |##" << string(intenal_size, '_') << "#"
250 << "\n 7Derived | BASE | " << setw(5) << intenal_size << "b |__" << string(intenal_size, '#')
251 << "_";
252 return format.str();
253 }
254};
255
256///////////////////////////////////////

Callers

nothing calls this directly

Calls 2

stringClass · 0.85
strMethod · 0.45

Tested by

no test coverage detected