style(sonar): fix cpp:S6185 (#4133)
This commit is contained in:
parent
a28c20df18
commit
dbe80d0f92
17 changed files with 73 additions and 41 deletions
|
|
@ -5,6 +5,7 @@
|
|||
#include "../tests_common.h"
|
||||
#include "../tests_log_checker.h"
|
||||
|
||||
#include <format>
|
||||
#include <random>
|
||||
#include <src/logging.h>
|
||||
|
||||
|
|
@ -39,7 +40,7 @@ TEST_P(LogLevelsTest, PutMessage) {
|
|||
|
||||
std::random_device rand_dev;
|
||||
std::mt19937_64 rand_gen(rand_dev());
|
||||
auto test_message = std::to_string(rand_gen()) + std::to_string(rand_gen());
|
||||
auto test_message = std::format("{}{}", rand_gen(), rand_gen());
|
||||
BOOST_LOG(logger) << test_message;
|
||||
|
||||
ASSERT_TRUE(log_checker::line_contains(log_file, test_message));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue