diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-18 21:43:14 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-10-18 21:43:14 -0500 |
commit | 72ca6added88259f9b456810bdd7300c2037b23c (patch) | |
tree | f783223d22d7dca95d2109ca2dc90c84ec047628 | |
parent | 5ff493fde203f36b71717439b26b3b6a735528d6 (diff) | |
download | horizon-72ca6added88259f9b456810bdd7300c2037b23c.tar.gz horizon-72ca6added88259f9b456810bdd7300c2037b23c.tar.bz2 horizon-72ca6added88259f9b456810bdd7300c2037b23c.tar.xz horizon-72ca6added88259f9b456810bdd7300c2037b23c.zip |
hscript: Mark more stuff as unreachable for LCOV
-rw-r--r-- | hscript/key.hh | 2 | ||||
-rw-r--r-- | hscript/meta.cc | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/hscript/key.hh b/hscript/key.hh index f1e2647..786df2d 100644 --- a/hscript/key.hh +++ b/hscript/key.hh @@ -39,11 +39,13 @@ public: * @returns nullptr if data is unparsable, otherwise a pointer to a Key. */ #define UNUSED __attribute__((unused)) + /* LCOV_EXCL_START */ static Key *parseFromData(const std::string &data UNUSED, int lineno UNUSED, int *errors UNUSED, int *warnings UNUSED) { return nullptr; } + /* LCOV_EXCL_STOP */ #undef UNUSED /*! Determines if the data associated with the Key is valid. */ diff --git a/hscript/meta.cc b/hscript/meta.cc index b2d7010..0248af9 100644 --- a/hscript/meta.cc +++ b/hscript/meta.cc @@ -121,7 +121,7 @@ bool Hostname::execute(ScriptOptions opts) const { if(opts.test(Simulate)) { std::cout << "printf 'dns_domain_lo=\"" << domain << "\"\\" << "n' >> /target/etc/conf.d/net" << std::endl; - } else { + } else { /* LCOV_EXCL_START */ std::ofstream net_conf_f("/target/etc/conf.d/net"); if(!net_conf_f) { output_error("installfile:" + std::to_string(this->lineno()), @@ -130,7 +130,7 @@ bool Hostname::execute(ScriptOptions opts) const { return false; } net_conf_f << "dns_domain_lo\"" << domain << "\"" << std::endl; - } + } /* LCOV_EXCL_STOP */ } return true; |