Commit ba07592ed8261c0f34b67ce1e2dd1f1184faec2a

Authored by Philip Top
Committed by Henry Schreiner
1 parent 73950eb6

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
... ... @@ -552,9 +552,7 @@ class App {
552 552 }
553 553 }
554 554 // this line should not be reached the above loop should trigger the throw
555   - // LCOV_EXCL_START
556   - throw(OptionAlreadyAdded("added option matched existing option name"));
557   - // LCOV_EXCL_END
  555 + throw(OptionAlreadyAdded("added option matched existing option name")); // LCOV_EXCL_LINE
558 556 }
559 557  
560 558 /// Add option for assigning to a variable
... ... @@ -2488,7 +2486,7 @@ class App {
2488 2486 // LCOV_EXCL_START
2489 2487 default:
2490 2488 throw HorribleError("unrecognized classifier (you should not see this!)");
2491   - // LCOV_EXCL_END
  2489 + // LCOV_EXCL_STOP
2492 2490 }
2493 2491 return retval;
2494 2492 }
... ...
include/CLI/Timer.hpp
... ... @@ -101,7 +101,7 @@ class Timer {
101 101 else
102 102 return print_it(time, "s");
103 103 }
104   - // LCOV_EXCL_END
  104 + // LCOV_EXCL_STOP
105 105  
106 106 /// This is the main function, it creates a string
107 107 std::string to_string() const { return time_print_(title_, make_time_str()); }
... ...