Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
json
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
json
Commits
364a21be
Commit
364a21be
authored
Aug 13, 2021
by
Ferry Huberts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add coverage exclusion comments, as requested
Signed-off-by:
Ferry Huberts
<
ferry.huberts@pelagic.nl
>
parent
95b73bcd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
17 deletions
+17
-17
include/nlohmann/detail/exceptions.hpp
include/nlohmann/detail/exceptions.hpp
+8
-8
include/nlohmann/detail/input/binary_reader.hpp
include/nlohmann/detail/input/binary_reader.hpp
+2
-2
include/nlohmann/json.hpp
include/nlohmann/json.hpp
+7
-7
No files found.
include/nlohmann/detail/exceptions.hpp
View file @
364a21be
...
...
@@ -102,14 +102,14 @@ class exception : public std::exception
break
;
}
case
value_t
:
:
null
:
case
value_t
:
:
string
:
case
value_t
:
:
boolean
:
case
value_t
:
:
number_integer
:
case
value_t
:
:
number_unsigned
:
case
value_t
:
:
number_float
:
case
value_t
:
:
binary
:
case
value_t
:
:
discarded
:
case
value_t
:
:
null
:
// LCOV_EXCL_LINE
case
value_t
:
:
string
:
// LCOV_EXCL_LINE
case
value_t
:
:
boolean
:
// LCOV_EXCL_LINE
case
value_t
:
:
number_integer
:
// LCOV_EXCL_LINE
case
value_t
:
:
number_unsigned
:
// LCOV_EXCL_LINE
case
value_t
:
:
number_float
:
// LCOV_EXCL_LINE
case
value_t
:
:
binary
:
// LCOV_EXCL_LINE
case
value_t
:
:
discarded
:
// LCOV_EXCL_LINE
default:
// LCOV_EXCL_LINE
break
;
// LCOV_EXCL_LINE
}
...
...
include/nlohmann/detail/input/binary_reader.hpp
View file @
364a21be
...
...
@@ -119,7 +119,7 @@ class binary_reader
result
=
parse_ubjson_internal
();
break
;
case
input_format_t
:
:
json
:
case
input_format_t
:
:
json
:
// LCOV_EXCL_LINE
default:
// 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"
;
break
;
case
input_format_t
:
:
json
:
case
input_format_t
:
:
json
:
// LCOV_EXCL_LINE
default:
// LCOV_EXCL_LINE
JSON_ASSERT
(
false
);
// NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
}
...
...
include/nlohmann/json.hpp
View file @
364a21be
...
...
@@ -8496,13 +8496,13 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
}
// if there exists a parent it cannot be primitive
case
value_t
:
:
string
:
case
value_t
:
:
boolean
:
case
value_t
:
:
number_integer
:
case
value_t
:
:
number_unsigned
:
case
value_t
:
:
number_float
:
case
value_t
:
:
binary
:
case
value_t
:
:
discarded
:
case
value_t
:
:
string
:
// LCOV_EXCL_LINE
case
value_t
:
:
boolean
:
// LCOV_EXCL_LINE
case
value_t
:
:
number_integer
:
// LCOV_EXCL_LINE
case
value_t
:
:
number_unsigned
:
// LCOV_EXCL_LINE
case
value_t
:
:
number_float
:
// LCOV_EXCL_LINE
case
value_t
:
:
binary
:
// LCOV_EXCL_LINE
case
value_t
:
:
discarded
:
// LCOV_EXCL_LINE
default:
// LCOV_EXCL_LINE
JSON_ASSERT
(
false
);
// NOLINT(cert-dcl03-c,hicpp-static-assert,misc-static-assert) LCOV_EXCL_LINE
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment