MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / countCoverageMatches

Function countCoverageMatches

src/Common/CoverageCollection.cpp:287–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

285}
286
287size_t countCoverageMatches(const std::vector<CovCounter> & name_refs)
288{
289 ensureCoverageMapLoaded();
290 size_t count = 0;
291 for (const auto & [name_hash, func_hash, counter_id, min_depth] : name_refs)
292 if (g_coverage_map.count(CoverageKey{name_hash, func_hash, counter_id}))
293 ++count;
294 return count;
295}
296
297uint64_t getFirstCoverageMapKey()
298{

Callers 1

executeImplMethod · 0.85

Calls 2

ensureCoverageMapLoadedFunction · 0.85
countMethod · 0.45

Tested by

no test coverage detected