mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-29 20:23:55 +00:00
add //LCOV_EXCL_STOP for coverage exclusion sections (#376)
* add //LCOV_EXCL_STOP for coverage exclusion sections * try using different // LCOV exclusions
This commit is contained in:
parent
73950eb6a2
commit
ba07592ed8
@ -552,9 +552,7 @@ class App {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// this line should not be reached the above loop should trigger the throw
|
// 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_LINE
|
||||||
throw(OptionAlreadyAdded("added option matched existing option name"));
|
|
||||||
// LCOV_EXCL_END
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Add option for assigning to a variable
|
/// Add option for assigning to a variable
|
||||||
@ -2488,7 +2486,7 @@ class App {
|
|||||||
// LCOV_EXCL_START
|
// LCOV_EXCL_START
|
||||||
default:
|
default:
|
||||||
throw HorribleError("unrecognized classifier (you should not see this!)");
|
throw HorribleError("unrecognized classifier (you should not see this!)");
|
||||||
// LCOV_EXCL_END
|
// LCOV_EXCL_STOP
|
||||||
}
|
}
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
@ -101,7 +101,7 @@ class Timer {
|
|||||||
else
|
else
|
||||||
return print_it(time, "s");
|
return print_it(time, "s");
|
||||||
}
|
}
|
||||||
// LCOV_EXCL_END
|
// LCOV_EXCL_STOP
|
||||||
|
|
||||||
/// This is the main function, it creates a string
|
/// This is the main function, it creates a string
|
||||||
std::string to_string() const { return time_print_(title_, make_time_str()); }
|
std::string to_string() const { return time_print_(title_, make_time_str()); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user