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

Method CongruencyTest

src/tw/dbdebug.cpp:402–416  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

400///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
401
402void cDbDebug::CongruencyTest(void)
403{
404 cDbDebug_i::hierDbMap::iterator i = mpData->mDbMap.begin();
405 for (; i != mpData->mDbMap.end(); ++i)
406 {
407 if ((*i).second != 1)
408 {
409 //We've found something in the blockfile map that is not accounted for by the
410 //hierarchy. Add this address to the appropriate list.
411 //TCOUT<< (*i).first.first << _T(",") << (*i).first.second << std::endl;
412 //TCOUT<< (*i).second <<std::endl;
413 mpData->mlMissingFromHierarchy.push_back(std::pair<int, int>((*i).first.first, (*i).first.second));
414 }
415 }
416}
417
418////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
419// OutputResults --

Callers 1

ExecuteMethod · 0.80

Calls 2

beginMethod · 0.80
endMethod · 0.80

Tested by

no test coverage detected