summaryrefslogtreecommitdiff
path: root/hscript/disk_lvm.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_lvm.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_lvm.cc')
-rw-r--r--hscript/disk_lvm.cc8
1 files changed, 5 insertions, 3 deletions
diff --git a/hscript/disk_lvm.cc b/hscript/disk_lvm.cc
index 70e1ba2..f558515 100644
--- a/hscript/disk_lvm.cc
+++ b/hscript/disk_lvm.cc
@@ -59,7 +59,7 @@ bool LVMPhysical::execute(ScriptOptions opts) const {
return false;
}
#endif /* HAS_INSTALL_ENV */
- return true;
+ return true; /* LCOV_EXCL_LINE */
}
@@ -152,6 +152,7 @@ bool LVMGroup::validate(ScriptOptions) const {
return true;
}
+/* LCOV_EXCL_START */
bool LVMGroup::test_pv(ScriptOptions) const {
#ifdef HAS_INSTALL_ENV
const char *fstype = blkid_get_tag_value(nullptr, "TYPE",
@@ -166,6 +167,7 @@ bool LVMGroup::test_pv(ScriptOptions) const {
return true;
#endif /* HAS_INSTALL_ENV */
}
+/* LCOV_EXCL_STOP */
#ifdef HAS_INSTALL_ENV
/*! Determine if a named Volume Group currently exists on a LVM PV.
@@ -237,7 +239,7 @@ bool LVMGroup::execute(ScriptOptions opts) const {
return false;
}
#endif /* HAS_INSTALL_ENV */
- return true;
+ return true; /* LCOV_EXCL_LINE */
}
@@ -325,5 +327,5 @@ bool LVMVolume::execute(ScriptOptions opts) const {
return false;
}
#endif /* HAS_INSTALL_ENV */
- return true;
+ return true; /* LCOV_EXCL_LINE */
}