MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / TEST

Function TEST

tools/branch_coverage_test.cc:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104TEST(BranchCoverage, DefaultsForUntrackedId) {
105 auto coverage = CreateBranchCoverage(TestExpression());
106
107 using Stats = BranchCoverage::NodeCoverageStats;
108
109 EXPECT_THAT(coverage->StatsForNode(99),
110 MatchesNodeStats(Stats{/*is_boolean=*/false,
111 /*evaluation_count=*/0,
112 /*boolean_true_count=*/0,
113 /*boolean_false_count=*/0,
114 /*error_count=*/0}));
115}
116
117TEST(BranchCoverage, Record) {
118 auto coverage = CreateBranchCoverage(TestExpression());

Callers

nothing calls this directly

Calls 15

CreateBranchCoverageFunction · 0.85
RegisterBuiltinFunctionsFunction · 0.85
StatsForNodeMethod · 0.80
RecordMethod · 0.80
GetRegistryMethod · 0.80
InsertValueMethod · 0.80
BoolOrDieMethod · 0.80
DescendantsPreorderMethod · 0.80
node_kindMethod · 0.80
atMethod · 0.80
childrenMethod · 0.80

Tested by

no test coverage detected