Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
json
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
json
Commits
625370a1
Commit
625370a1
authored
Sep 02, 2016
by
Niels
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop'
parents
2c82f252
357baeff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
0 deletions
+16
-0
scanner.png
doc/images/scanner.png
+0
-0
json.gif
doc/json.gif
+0
-0
unit-deserialization.cpp
test/src/unit-deserialization.cpp
+16
-0
No files found.
doc/images/scanner.png
0 → 100644
View file @
625370a1
645 KB
doc/json.gif
View replaced file @
2c82f252
View file @
625370a1
440 KB
|
W:
|
H:
440 KB
|
W:
|
H:
2-up
Swipe
Onion skin
test/src/unit-deserialization.cpp
View file @
625370a1
...
@@ -223,5 +223,21 @@ TEST_CASE("deserialization")
...
@@ -223,5 +223,21 @@ TEST_CASE("deserialization")
CHECK_THROWS_AS
(
json
::
parse
(
std
::
begin
(
v
),
std
::
end
(
v
)),
std
::
invalid_argument
);
CHECK_THROWS_AS
(
json
::
parse
(
std
::
begin
(
v
),
std
::
end
(
v
)),
std
::
invalid_argument
);
}
}
}
}
// these cases are required for 100% line coverage
SECTION
(
"error cases"
)
{
SECTION
(
"case 1"
)
{
uint8_t
v
[]
=
{
'\"'
,
'a'
,
'a'
,
'a'
,
'a'
,
'a'
,
'a'
,
'\\'
,
'u'
};
CHECK_THROWS_AS
(
json
::
parse
(
std
::
begin
(
v
),
std
::
end
(
v
)),
std
::
invalid_argument
);
}
SECTION
(
"case 2"
)
{
uint8_t
v
[]
=
{
'\"'
,
'a'
,
'a'
,
'a'
,
'a'
,
'a'
,
'a'
,
'\\'
,
'u'
,
'1'
};
CHECK_THROWS_AS
(
json
::
parse
(
std
::
begin
(
v
),
std
::
end
(
v
)),
std
::
invalid_argument
);
}
}
}
}
}
}
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