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

Function GetSegment

libs/routing/routing_tests/fake_graph_test.cpp:19–26  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17using namespace std;
18
19Segment GetSegment(uint32_t segmentIdx, bool isReal = false)
20{
21 static NumMwmId constexpr kFakeNumMwmId = std::numeric_limits<NumMwmId>::max();
22 static uint32_t constexpr kFakeFeatureId = FakeFeatureIds::kIndexGraphStarterId;
23 if (isReal)
24 return Segment(0 /* mwmId */, 0 /* featureId */, segmentIdx, true /* isForward */);
25 return Segment(kFakeNumMwmId, kFakeFeatureId, segmentIdx, true /* isForward */);
26}
27
28FakeVertex GetFakeVertex(uint32_t index)
29{

Callers 2

ConstructFakeGraphFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 1

SegmentClass · 0.50

Tested by

no test coverage detected