Remove coverage exclusion

This commit is contained in:
Florian Albrechtskirchinger 2022-06-11 11:13:36 +02:00
parent ea3e962192
commit 39e55e2f11
No known key found for this signature in database
GPG Key ID: 19618CE9B2D4BE6D
2 changed files with 8 additions and 12 deletions

View File

@ -2082,9 +2082,8 @@ class binary_reader
} }
if (!value_in_range_of<std::size_t>(number)) if (!value_in_range_of<std::size_t>(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,
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));
exception_message(input_format, "integer value overflow", "size"), nullptr)); // LCOV_EXCL_LINE
} }
result = static_cast<std::size_t>(number); result = static_cast<std::size_t>(number);
return true; return true;
@ -2133,9 +2132,8 @@ class binary_reader
} }
if (!value_in_range_of<std::size_t>(number)) if (!value_in_range_of<std::size_t>(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,
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));
exception_message(input_format, "integer value overflow", "size"), nullptr)); // LCOV_EXCL_LINE
} }
result = detail::conditional_static_cast<std::size_t>(number); result = detail::conditional_static_cast<std::size_t>(number);
return true; return true;

View File

@ -10767,9 +10767,8 @@ class binary_reader
} }
if (!value_in_range_of<std::size_t>(number)) if (!value_in_range_of<std::size_t>(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,
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));
exception_message(input_format, "integer value overflow", "size"), nullptr)); // LCOV_EXCL_LINE
} }
result = static_cast<std::size_t>(number); result = static_cast<std::size_t>(number);
return true; return true;
@ -10818,9 +10817,8 @@ class binary_reader
} }
if (!value_in_range_of<std::size_t>(number)) if (!value_in_range_of<std::size_t>(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,
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));
exception_message(input_format, "integer value overflow", "size"), nullptr)); // LCOV_EXCL_LINE
} }
result = detail::conditional_static_cast<std::size_t>(number); result = detail::conditional_static_cast<std::size_t>(number);
return true; return true;