Add coverage exclusion comments, as requested

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
This commit is contained in:
Ferry Huberts committed 2021-08-13 15:30:55 +02:00
1 parent 95b73bcd01
commit 364a21be6b
3 files changed
+17 -17

No files matched your search

+8 -8
View File
@@ -102,14 +102,14 @@ class exception : public std::exception
break; break;
} }
case value_t::null: case value_t::null: // LCOV_EXCL_LINE
case value_t::string: case value_t::string: // LCOV_EXCL_LINE
case value_t::boolean: case value_t::boolean: // LCOV_EXCL_LINE
case value_t::number_integer: case value_t::number_integer: // LCOV_EXCL_LINE
case value_t::number_unsigned: case value_t::number_unsigned: // LCOV_EXCL_LINE
case value_t::number_float: case value_t::number_float: // LCOV_EXCL_LINE
case value_t::binary: case value_t::binary: // LCOV_EXCL_LINE
case value_t::discarded: case value_t::discarded: // LCOV_EXCL_LINE
default: // LCOV_EXCL_LINE default: // LCOV_EXCL_LINE
break; // LCOV_EXCL_LINE break; // LCOV_EXCL_LINE
} }
@@ -119,7 +119,7 @@ class binary_reader
result = parse_ubjson_internal(); result = parse_ubjson_internal();
break; break;
case input_format_t::json: case input_format_t::json: // LCOV_EXCL_LINE
default: // LCOV_EXCL_LINE default: // LCOV_EXCL_LINE
JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
} }
@@ -2453,7 +2453,7 @@ class binary_reader
error_msg += "BSON"; error_msg += "BSON";
break; break;
case input_format_t::json: case input_format_t::json: // LCOV_EXCL_LINE
default: // LCOV_EXCL_LINE default: // LCOV_EXCL_LINE
JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
} }
+7 -7
View File
@@ -8496,13 +8496,13 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
} }
// if there exists a parent it cannot be primitive // if there exists a parent it cannot be primitive
case value_t::string: case value_t::string: // LCOV_EXCL_LINE
case value_t::boolean: case value_t::boolean: // LCOV_EXCL_LINE
case value_t::number_integer: case value_t::number_integer: // LCOV_EXCL_LINE
case value_t::number_unsigned: case value_t::number_unsigned: // LCOV_EXCL_LINE
case value_t::number_float: case value_t::number_float: // LCOV_EXCL_LINE
case value_t::binary: case value_t::binary: // LCOV_EXCL_LINE
case value_t::discarded: case value_t::discarded: // LCOV_EXCL_LINE
default: // LCOV_EXCL_LINE default: // LCOV_EXCL_LINE
JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE JSON_ASSERT(false); // NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
} }