summaryrefslogtreecommitdiff
path: root/hscript/disk.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/disk.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/disk.cc')
-rw-r--r--hscript/disk.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/hscript/disk.cc b/hscript/disk.cc
index cef1a1e..07eca06 100644
--- a/hscript/disk.cc
+++ b/hscript/disk.cc
@@ -151,7 +151,7 @@ bool DiskId::execute(ScriptOptions options) const {
udev_unref(udev);
#endif /* HAS_INSTALL_ENV */
- return match;
+ return match; /* LCOV_EXCL_LINE */
}
@@ -256,7 +256,7 @@ bool DiskLabel::execute(ScriptOptions options) const {
}
return (res == 1);
#else
- return false;
+ return false; /* LCOV_EXCL_LINE */
#endif /* HAS_INSTALL_ENV */
}
@@ -579,7 +579,7 @@ bool Partition::execute(ScriptOptions opts) const {
ped_disk_destroy(disk);
#endif /* HAS_INSTALL_ENV */
- return true;
+ return true; /* LCOV_EXCL_LINE */
}
@@ -701,7 +701,7 @@ bool Filesystem::execute(ScriptOptions opts) const {
return false;
}
#endif /* HAS_INSTALL_ENV */
- return true;
+ return true; /* LCOV_EXCL_LINE */
}