From 9ba90f5b70fa9c05978e5ad6c8222f7bf6aaf04f Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Sat, 11 Jun 2022 11:13:36 +0200 Subject: [PATCH] Remove coverage exclusion --- include/nlohmann/detail/input/binary_reader.hpp | 10 ++++------ single_include/nlohmann/json.hpp | 10 ++++------ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/include/nlohmann/detail/input/binary_reader.hpp b/include/nlohmann/detail/input/binary_reader.hpp index 2052fbffd..f5871ddf6 100644 --- a/include/nlohmann/detail/input/binary_reader.hpp +++ b/include/nlohmann/detail/input/binary_reader.hpp @@ -2082,9 +2082,8 @@ class binary_reader } if (!value_in_range_of(number)) { - // undo coverage exclusion once the 32bit test is run as part of CI (#3524) - return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, // LCOV_EXCL_LINE - exception_message(input_format, "integer value overflow", "size"), nullptr)); // LCOV_EXCL_LINE + return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, + exception_message(input_format, "integer value overflow", "size"), nullptr)); } result = static_cast(number); return true; @@ -2133,9 +2132,8 @@ class binary_reader } if (!value_in_range_of(number)) { - // undo coverage exclusion once the 32bit test is run as part of CI (#3524) - return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, // LCOV_EXCL_LINE - exception_message(input_format, "integer value overflow", "size"), nullptr)); // LCOV_EXCL_LINE + return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, + exception_message(input_format, "integer value overflow", "size"), nullptr)); } result = detail::conditional_static_cast(number); return true; diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 54e93eb0d..830a0ed90 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -10767,9 +10767,8 @@ class binary_reader } if (!value_in_range_of(number)) { - // undo coverage exclusion once the 32bit test is run as part of CI (#3524) - return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, // LCOV_EXCL_LINE - exception_message(input_format, "integer value overflow", "size"), nullptr)); // LCOV_EXCL_LINE + return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, + exception_message(input_format, "integer value overflow", "size"), nullptr)); } result = static_cast(number); return true; @@ -10818,9 +10817,8 @@ class binary_reader } if (!value_in_range_of(number)) { - // undo coverage exclusion once the 32bit test is run as part of CI (#3524) - return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, // LCOV_EXCL_LINE - exception_message(input_format, "integer value overflow", "size"), nullptr)); // LCOV_EXCL_LINE + return sax->parse_error(chars_read, get_token_string(), out_of_range::create(408, + exception_message(input_format, "integer value overflow", "size"), nullptr)); } result = detail::conditional_static_cast(number); return true;