From c4e2d2373bed23f56ab8b96fc028ffb1c5c56001 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 4 Nov 2019 19:37:47 -0600 Subject: hscript: Mark code correctly for LCOV --- hscript/disk_lvm.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'hscript/disk_lvm.cc') 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 */ } -- cgit v1.2.3-60-g2f50