Lines Matching refs:Covered
25 size_t Covered; variable
31 RegionCoverageInfo() : Covered(0), NumRegions(0) {} in RegionCoverageInfo()
33 RegionCoverageInfo(size_t Covered, size_t NumRegions) in RegionCoverageInfo() argument
34 : Covered(Covered), NumRegions(NumRegions) { in RegionCoverageInfo()
35 assert(Covered <= NumRegions && "Covered regions over-counted"); in RegionCoverageInfo()
39 Covered += RHS.Covered;
45 Covered = std::max(Covered, RHS.Covered); in merge()
49 size_t getCovered() const { return Covered; } in getCovered()
53 bool isFullyCovered() const { return Covered == NumRegions; } in isFullyCovered()
56 assert(Covered <= NumRegions && "Covered regions over-counted"); in getPercentCovered()
59 return double(Covered) / double(NumRegions) * 100.0; in getPercentCovered()
66 size_t Covered; variable
72 LineCoverageInfo() : Covered(0), NumLines(0) {} in LineCoverageInfo()
74 LineCoverageInfo(size_t Covered, size_t NumLines) in LineCoverageInfo() argument
75 : Covered(Covered), NumLines(NumLines) { in LineCoverageInfo()
76 assert(Covered <= NumLines && "Covered lines over-counted"); in LineCoverageInfo()
80 Covered += RHS.Covered;
86 Covered = std::max(Covered, RHS.Covered); in merge()
90 size_t getCovered() const { return Covered; } in getCovered()
94 bool isFullyCovered() const { return Covered == NumLines; } in isFullyCovered()
97 assert(Covered <= NumLines && "Covered lines over-counted"); in getPercentCovered()
100 return double(Covered) / double(NumLines) * 100.0; in getPercentCovered()
124 void addFunction(bool Covered) { in addFunction() argument
125 if (Covered) in addFunction()