mirror of
https://github.com/nlohmann/json.git
synced 2026-03-21 16:32:47 +00:00
Update CI (#3088)
* 👷 prepare GitHub actions for new Docker image * 👷 use experimental docker image * 👷 use Clang-Analyzer 14 * 🔇 suppress readability-identifier-length * 🔇 suppress more Clang-Tidy warnings * ♻️ simplify code * 🔇 suppress more Clang-Tidy warnings * 🔇 suppress more Clang-Tidy warnings * 🚨 fix warning * 🚨 fix warning * 🚨 fix warning * 👷 use new Docker image
This commit is contained in:
@@ -648,7 +648,7 @@ TEST_CASE("JSON patch")
|
||||
CHECK(target == R"({ "D": "Berlin", "F": "Paris", "GB": "London" })"_json);
|
||||
|
||||
// create a diff from two JSONs
|
||||
json p2 = json::diff(target, source);
|
||||
json p2 = json::diff(target, source); // NOLINT(readability-suspicious-call-argument)
|
||||
// p2 = [{"op": "delete", "path": "/GB"}]
|
||||
CHECK(p2 == R"([{"op":"remove","path":"/GB"}])"_json);
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ TEST_CASE("tests on very large JSONs")
|
||||
{
|
||||
const auto depth = 5000000;
|
||||
|
||||
std::string s(2 * depth, '[');
|
||||
std::string s(static_cast<std::size_t>(2 * depth), '[');
|
||||
std::fill(s.begin() + depth, s.end(), ']');
|
||||
|
||||
json _;
|
||||
|
||||
@@ -349,7 +349,7 @@ TEST_CASE("MessagePack")
|
||||
{
|
||||
for (uint64_t i :
|
||||
{
|
||||
4294967296lu, 9223372036854775807lu
|
||||
4294967296LU, 9223372036854775807LU
|
||||
})
|
||||
{
|
||||
CAPTURE(i)
|
||||
@@ -719,7 +719,7 @@ TEST_CASE("MessagePack")
|
||||
{
|
||||
for (uint64_t i :
|
||||
{
|
||||
4294967296lu, 18446744073709551615lu
|
||||
4294967296LU, 18446744073709551615LU
|
||||
})
|
||||
{
|
||||
CAPTURE(i)
|
||||
|
||||
Reference in New Issue
Block a user