From cb4a9c85cb81cf3dc989abc308c08ddb1ed1ca14 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Sun, 28 Jan 2018 17:55:40 +0100 Subject: [PATCH] :hammer: excluded code from coverage --- develop/detail/conversions/to_chars.hpp | 2 ++ src/json.hpp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/develop/detail/conversions/to_chars.hpp b/develop/detail/conversions/to_chars.hpp index 549ff01e..186b62ef 100644 --- a/develop/detail/conversions/to_chars.hpp +++ b/develop/detail/conversions/to_chars.hpp @@ -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; diff --git a/src/json.hpp b/src/json.hpp index 0fd92ebd..e12904a8 100644 --- a/src/json.hpp +++ b/src/json.hpp @@ -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;