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

Function spit

src/iocore/hostdb/test_HostFile.cc:67–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65CATCH_REGISTER_LISTENER(EventProcessorListener);
66
67void
68spit(const swoc::file::path &p, std::string_view data)
69{
70 std::ofstream f(p.c_str(), std::ios::trunc);
71 f.write(data.data(), data.size());
72 f.close();
73}
74
75TEST_CASE("HostFile", "[hostdb]")
76{

Callers 1

test_HostFile.ccFile · 0.85

Calls 5

c_strMethod · 0.45
writeMethod · 0.45
dataMethod · 0.45
sizeMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected