From ba07592ed8261c0f34b67ce1e2dd1f1184faec2a Mon Sep 17 00:00:00 2001 From: Philip Top Date: Sat, 28 Dec 2019 18:58:24 -0800 Subject: [PATCH] add //LCOV_EXCL_STOP for coverage exclusion sections (#376) * add //LCOV_EXCL_STOP for coverage exclusion sections * try using different // LCOV exclusions --- include/CLI/App.hpp | 6 ++---- include/CLI/Timer.hpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/include/CLI/App.hpp b/include/CLI/App.hpp index fa4c00ca..753f5016 100644 --- a/include/CLI/App.hpp +++ b/include/CLI/App.hpp @@ -552,9 +552,7 @@ class App { } } // this line should not be reached the above loop should trigger the throw - // LCOV_EXCL_START - throw(OptionAlreadyAdded("added option matched existing option name")); - // LCOV_EXCL_END + throw(OptionAlreadyAdded("added option matched existing option name")); // LCOV_EXCL_LINE } /// Add option for assigning to a variable @@ -2488,7 +2486,7 @@ class App { // LCOV_EXCL_START default: throw HorribleError("unrecognized classifier (you should not see this!)"); - // LCOV_EXCL_END + // LCOV_EXCL_STOP } return retval; } diff --git a/include/CLI/Timer.hpp b/include/CLI/Timer.hpp index 481546ab..c611706d 100644 --- a/include/CLI/Timer.hpp +++ b/include/CLI/Timer.hpp @@ -101,7 +101,7 @@ class Timer { else return print_it(time, "s"); } - // LCOV_EXCL_END + // LCOV_EXCL_STOP /// This is the main function, it creates a string std::string to_string() const { return time_print_(title_, make_time_str()); }