MCPcopy Create free account
hub / github.com/comaps/comaps / TestDepthNodeById

Function TestDepthNodeById

generator/generator_tests/hierarchy_tests.cpp:59–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57}
58
59void TestDepthNodeById(generator::hierarchy::HierarchyLinker::Node::Ptr const & tree, uint64_t id, size_t depth)
60{
61 auto osmId = base::MakeOsmWay(id);
62 TEST_EQUAL(tree_node::GetDepth(
63 tree_node::FindIf(tree, [&](auto const & data) { return data.GetCompositeId().m_mainId == osmId; })),
64 depth, ());
65}
66
67UNIT_CLASS_TEST(TestWithClassificator, ComplexHierarchy_FlattenBuildingParts)
68{

Callers 1

UNIT_CLASS_TESTFunction · 0.85

Calls 3

MakeOsmWayFunction · 0.85
GetDepthFunction · 0.85
FindIfFunction · 0.50

Tested by

no test coverage detected