Internals: Fix misc internal coverage holes. No functional change intended.

This commit is contained in:
Wilson Snyder
2020-06-04 21:40:40 -04:00
parent 8d61cd9029
commit 3243651c63
6 changed files with 26 additions and 10 deletions
+2 -2
View File
@@ -390,14 +390,14 @@ string FileLine::warnOther() const {
}
string FileLine::source() const {
if (VL_UNCOVERABLE(!m_contentp)) {
if (VL_UNCOVERABLE(!m_contentp)) { // LCOV_EXCL_START
if (debug() || v3Global.opt.debugCheck()) {
// The newline here is to work around the " <line#> | "
return "\n%Error: internal tracking of file contents failed";
} else {
return "";
}
}
} // LCOV_EXCL_STOP
return m_contentp->getLine(m_contentLineno);
}
string FileLine::prettySource() const {