mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 07:09:15 +01:00
refactor: Avoid std::string format strings
Pass literal format strings instead of std::string so formats can be checked at compile time. Co-authored-by: Ryan Ofsky <ryan@ofsky.org> Co-authored-by: stickies-v <stickies-v@protonmail.com>
This commit is contained in:
@@ -178,10 +178,10 @@ public:
|
||||
size_t real_total = runner.txrequest.Count(peer);
|
||||
size_t real_candidates = runner.txrequest.CountCandidates(peer);
|
||||
size_t real_inflight = runner.txrequest.CountInFlight(peer);
|
||||
BOOST_CHECK_MESSAGE(real_total == total, strprintf("[" + comment + "] total %i (%i expected)", real_total, total));
|
||||
BOOST_CHECK_MESSAGE(real_inflight == inflight, strprintf("[" + comment + "] inflight %i (%i expected)", real_inflight, inflight));
|
||||
BOOST_CHECK_MESSAGE(real_candidates == candidates, strprintf("[" + comment + "] candidates %i (%i expected)", real_candidates, candidates));
|
||||
BOOST_CHECK_MESSAGE(ret == expected, "[" + comment + "] mismatching requestables");
|
||||
BOOST_CHECK_MESSAGE(real_total == total, strprintf("[%s] total %i (%i expected)", comment, real_total, total));
|
||||
BOOST_CHECK_MESSAGE(real_inflight == inflight, strprintf("[%s] inflight %i (%i expected)", comment, real_inflight, inflight));
|
||||
BOOST_CHECK_MESSAGE(real_candidates == candidates, strprintf("[%s] candidates %i (%i expected)", comment, real_candidates, candidates));
|
||||
BOOST_CHECK_MESSAGE(ret == expected, strprintf("[%s] mismatching requestables", comment));
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user