Skip to content

Commit

Permalink
🔨 excluded code from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
nlohmann committed Jan 28, 2018
1 parent 1483d39 commit cb4a9c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions develop/detail/conversions/to_chars.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -481,11 +481,13 @@ For n == 0, returns 1 and sets pow10 := 1.
*/
inline int find_largest_pow10(const uint32_t n, uint32_t& pow10)
{
// LCOV_EXCL_START
if (n >= 1000000000)
{
pow10 = 1000000000;
return 10;
}
// LCOV_EXCL_STOP
else if (n >= 100000000)
{
pow10 = 100000000;
Expand Down
2 changes: 2 additions & 0 deletions src/json.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7578,11 +7578,13 @@ For n == 0, returns 1 and sets pow10 := 1.
*/
inline int find_largest_pow10(const uint32_t n, uint32_t& pow10)
{
// LCOV_EXCL_START
if (n >= 1000000000)
{
pow10 = 1000000000;
return 10;
}
// LCOV_EXCL_STOP
else if (n >= 100000000)
{
pow10 = 100000000;
Expand Down

0 comments on commit cb4a9c8

Please sign in to comment.