style: Mark JSON literal strings with R"JSON (#2169)

This commit is contained in:
Ayaz Salikhov
2025-05-30 15:50:39 +01:00
committed by GitHub
parent 7588e9d5bf
commit ecdea015b9
76 changed files with 2811 additions and 2748 deletions

View File

@@ -44,7 +44,7 @@ struct AnyHistogramTests : ::testing::Test {
::testing::StrictMock<MockHistogramImpl> mockHistogramImpl;
std::string const name = "test_histogram";
std::string labelsString = R"({label1="value1",label2="value2"})";
std::string labelsString = R"JSON({label1="value1",label2="value2"})JSON";
HistogramInt histogram{name, labelsString, {1, 2, 3}, static_cast<MockHistogramImpl&>(mockHistogramImpl)};
};
@@ -72,7 +72,7 @@ TEST_F(AnyHistogramTests, serializeValue)
}
struct HistogramTests : ::testing::Test {
std::string labelsString = R"({label1="value1",label2="value2"})";
std::string labelsString = R"JSON({label1="value1",label2="value2"})JSON";
HistogramInt histogram{"t", labelsString, {1, 2, 3}};
std::string