Skip to content

Commit 0f76946

Browse files
committed
[hist] Exclude unreachable lines from coverage
1 parent 7cad46e commit 0f76946

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

hist/histv7/inc/ROOT/RAxes.hxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public:
6262
} else if (auto *variable = std::get_if<RVariableBinAxis>(&axis)) {
6363
totalNBins *= variable->GetTotalNBins();
6464
} else {
65-
throw std::logic_error("unimplemented axis type");
65+
throw std::logic_error("unimplemented axis type"); // GCOVR_EXCL_LINE
6666
}
6767
}
6868
return totalNBins;
@@ -81,7 +81,7 @@ private:
8181
index *= variable->GetTotalNBins();
8282
linIndex = variable->ComputeLinearizedIndex(std::get<I>(args));
8383
} else {
84-
throw std::logic_error("unimplemented axis type");
84+
throw std::logic_error("unimplemented axis type"); // GCOVR_EXCL_LINE
8585
}
8686
if (!linIndex.fValid) {
8787
return {0, false};
@@ -129,7 +129,7 @@ public:
129129
globalIndex *= variable->GetTotalNBins();
130130
linIndex = variable->GetLinearizedIndex(index);
131131
} else {
132-
throw std::logic_error("unimplemented axis type");
132+
throw std::logic_error("unimplemented axis type"); // GCOVR_EXCL_LINE
133133
}
134134
if (!linIndex.fValid) {
135135
return {0, false};

hist/histv7/inc/ROOT/RBinIndexRange.hxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public:
8989
fIndex = RBinIndex();
9090
} else if (fIndex.IsInvalid()) {
9191
// This should never happen! In the worst case, when built with NDEBUG, the iterator stays at Invalid.
92-
assert(0);
92+
assert(0); // GCOVR_EXCL_LINE
9393
} else {
9494
fIndex++;
9595
if (fIndex.GetIndex() == fNNormalBins) {

0 commit comments

Comments
 (0)