MCPcopy Create free account
hub / github.com/apple/foundationdb / schemaCoverage

Function schemaCoverage

fdbclient/ManagementAPI.actor.cpp:2321–2330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2319}
2320
2321void schemaCoverage(std::string const& spath, bool covered) {
2322 static std::map<bool, std::set<std::string>> coveredSchemaPaths;
2323
2324 if (coveredSchemaPaths[covered].insert(spath).second) {
2325 TraceEvent ev(SevInfo, "CodeCoverage");
2326 ev.detail("File", "documentation/StatusSchema.json/" + spath).detail("Line", 0);
2327 if (!covered)
2328 ev.detail("Covered", 0);
2329 }
2330}
2331
2332bool schemaMatch(json_spirit::mValue const& schemaValue,
2333 json_spirit::mValue const& resultValue,

Callers 2

schemaMatchFunction · 0.85

Calls 2

detailMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected