✅ improved test coverage
This commit is contained in:
parent
f0edab2363
commit
d7029c37aa
1 changed files with 7 additions and 0 deletions
|
@ -28,6 +28,7 @@ SOFTWARE.
|
||||||
|
|
||||||
#include "catch.hpp"
|
#include "catch.hpp"
|
||||||
|
|
||||||
|
#define private public
|
||||||
#include "json.hpp"
|
#include "json.hpp"
|
||||||
using nlohmann::json;
|
using nlohmann::json;
|
||||||
|
|
||||||
|
@ -1262,6 +1263,12 @@ TEST_CASE("CBOR regressions")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
SECTION("improve code coverage")
|
||||||
|
{
|
||||||
|
// exotic edge case
|
||||||
|
CHECK_THROWS_AS(json::check_length(0xffffffffffffffff, 0xfffffffffffffff0, 0xff), std::out_of_range);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
TEST_CASE("CBOR roundtrips", "[hide]")
|
TEST_CASE("CBOR roundtrips", "[hide]")
|
||||||
|
|
Loading…
Reference in a new issue