summaryrefslogtreecommitdiff
path: root/hscript/meta.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-04 19:37:47 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-11-04 19:37:47 -0600
commitc4e2d2373bed23f56ab8b96fc028ffb1c5c56001 (patch)
tree9d2dd60abdd5bd3464e0893eea58f380ce404d6a /hscript/meta.cc
parentffdfbdbacfdd0648eb25425a019337fe2ec16aca (diff)
downloadhorizon-c4e2d2373bed23f56ab8b96fc028ffb1c5c56001.tar.gz
horizon-c4e2d2373bed23f56ab8b96fc028ffb1c5c56001.tar.bz2
horizon-c4e2d2373bed23f56ab8b96fc028ffb1c5c56001.tar.xz
horizon-c4e2d2373bed23f56ab8b96fc028ffb1c5c56001.zip
hscript: Mark code correctly for LCOV
Diffstat (limited to 'hscript/meta.cc')
-rw-r--r--hscript/meta.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/hscript/meta.cc b/hscript/meta.cc
index b184a96..73e699a 100644
--- a/hscript/meta.cc
+++ b/hscript/meta.cc
@@ -308,7 +308,7 @@ bool Language::execute(ScriptOptions opts) const {
return false;
}
#endif /* HAS_INSTALL_ENV */
- return true;
+ return true; /* LCOV_EXCL_LINE */
}
@@ -374,7 +374,7 @@ BACKSPACE=guess"
keyconf << conf;
#endif /* HAS_INSTALL_ENV */
- return true;
+ return true; /* LCOV_EXCL_LINE */
}
@@ -406,10 +406,12 @@ Key *Firmware::parseFromData(const std::string &data, int lineno, int *errors,
return new Firmware(lineno, value);
}
+/* LCOV_EXCL_START */
bool Firmware::execute(ScriptOptions) const {
/* By itself, this does nothing. */
return true;
}
+/* LCOV_EXCL_END */
Key *Timezone::parseFromData(const std::string &data, int lineno, int *errors,
@@ -479,7 +481,7 @@ bool Timezone::execute(ScriptOptions opts) const {
return true;
}
#else
- return false;
+ return false; /* LCOV_EXCL_LINE */
#endif
}
@@ -525,7 +527,7 @@ bool Repository::execute(ScriptOptions opts) const {
return true;
#else
- return false;
+ return false; /* LCOV_EXCL_LINE */
#endif /* HAS_INSTALL_ENV */
}
@@ -589,5 +591,5 @@ bool SigningKey::execute(ScriptOptions opts) const {
return download_file(_value, target);
}
#endif /* HAS_INSTALL_ENV */
- return true;
+ return true; /* LCOV_EXCL_LINE */
}