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

Method Matches

generator/generator_tests_support/test_feature.cpp:103–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101}
102
103bool TestFeature::Matches(FeatureType & feature) const
104{
105 auto const sv = feature.GetMetadata(feature::Metadata::FMD_TEST_ID);
106 if (sv.empty())
107 return false;
108
109 uint64_t id;
110 CHECK(strings::to_uint(sv, id), (sv));
111 return id == m_id;
112}
113
114void TestFeature::Serialize(FeatureBuilder & fb) const
115{

Callers

nothing calls this directly

Calls 3

to_uintFunction · 0.85
GetMetadataMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected