* 👷 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:
Niels Lohmann
2021-10-29 21:27:34 +02:00
committed by GitHub
parent c4a4e672fd
commit 7440786b81
12 changed files with 98 additions and 151 deletions

View File

@@ -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);
}

View File

@@ -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 _;

View File

@@ -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)