MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / performComparison

Function performComparison

test/MapMerging.cpp:241–249  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239using namespace scene::merge;
240
241inline ComparisonResult::Ptr performComparison(const std::string& targetMap, const std::string& sourceMapPath)
242{
243 GlobalCommandSystem().executeCommand("OpenMap", cmd::Argument(targetMap));
244
245 auto resource = GlobalMapResourceManager().createFromPath(sourceMapPath);
246 EXPECT_TRUE(resource->load()) << "Test map not found in path " << sourceMapPath;
247
248 return GraphComparer::Compare(resource->getRootNode(), GlobalMapModule().getRoot());
249}
250
251inline std::size_t countPrimitiveDifference(const ComparisonResult::EntityDifference& diff,
252 const ComparisonResult::PrimitiveDifference::Type type)

Callers 1

TEST_FFunction · 0.85

Calls 6

createFromPathMethod · 0.80
ArgumentClass · 0.50
executeCommandMethod · 0.45
loadMethod · 0.45
getRootNodeMethod · 0.45
getRootMethod · 0.45

Tested by

no test coverage detected