MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / PrintPropVector

Function PrintPropVector

src/twtest/fspropset_t.cpp:42–53  ·  view source on GitHub ↗

////////////////////////////////////////////////////////////////////////// PrintPropVector -- function that prints the contents of a cFCOPropVector //////////////////////////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

40// PrintPropVector -- function that prints the contents of a cFCOPropVector
41///////////////////////////////////////////////////////////////////////////////
42static void PrintPropVector(const cFCOPropVector& v, cDebug& d)
43{
44 TOSTRINGSTREAM stream;
45 for (int i = 0; i < v.GetSize(); i++)
46 {
47 if (v.ContainsItem(i))
48 stream << i << ","
49 << " ";
50 }
51 stream << std::ends;
52 d.TraceDebug("%s\n", stream.str().c_str());
53}
54
55void TestFSPropSet()
56{

Callers 1

TestFSPropSetFunction · 0.85

Calls 4

ContainsItemMethod · 0.80
c_strMethod · 0.80
TraceDebugMethod · 0.60
GetSizeMethod · 0.45

Tested by 1

TestFSPropSetFunction · 0.68