aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordcherednik <dcherednik@ydb.tech>2022-10-26 18:40:44 +0300
committerdcherednik <dcherednik@ydb.tech>2022-10-26 18:40:44 +0300
commit7a8c83ad951880f91a587a3d7c772e05b7e2b61b (patch)
tree340040e2b6f755e7aa9c0a5b794783cc08691743
parent60c871d9486be229e5c0419cd20924f31b67cb37 (diff)
downloadydb-7a8c83ad951880f91a587a3d7c772e05b7e2b61b.tar.gz
Fix ut build for jsonpath.
-rw-r--r--ydb/library/yql/minikql/jsonpath/ut/test_base.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ydb/library/yql/minikql/jsonpath/ut/test_base.cpp b/ydb/library/yql/minikql/jsonpath/ut/test_base.cpp
index bddc7d11a3..a203e6ba80 100644
--- a/ydb/library/yql/minikql/jsonpath/ut/test_base.cpp
+++ b/ydb/library/yql/minikql/jsonpath/ut/test_base.cpp
@@ -34,7 +34,7 @@ void TJsonPathTestBase::RunTestCase(const TString& rawJson, const TString& rawJs
const TJsonPathPtr jsonPath = ParseJsonPath(rawJsonPath, issues, MAX_PARSE_ERRORS);
UNIT_ASSERT_C(issues.Empty(), "Parse errors found");
- for (const auto json : {unboxedValueJson, binaryJsonRoot}) {
+ for (const auto& json : {unboxedValueJson, binaryJsonRoot}) {
const auto result = ExecuteJsonPath(jsonPath, json, TVariablesMap{}, &ValueBuilder);
UNIT_ASSERT_C(!result.IsError(), "Runtime errors found");
@@ -85,7 +85,7 @@ void TJsonPathTestBase::RunRuntimeErrorTestCase(const TString& rawJson, const TS
const TJsonPathPtr jsonPath = ParseJsonPath(rawJsonPath, issues, MAX_PARSE_ERRORS);
UNIT_ASSERT_C(issues.Empty(), "Parse errors found");
- for (const auto json : {unboxedValueJson, binaryJsonRoot}) {
+ for (const auto& json : {unboxedValueJson, binaryJsonRoot}) {
const auto result = ExecuteJsonPath(jsonPath, json, TVariablesMap{}, &ValueBuilder);
UNIT_ASSERT_C(result.IsError(), "Expected runtime error");
UNIT_ASSERT_VALUES_EQUAL(result.GetError().GetCode(), error);
@@ -133,7 +133,7 @@ void TJsonPathTestBase::RunVariablesTestCase(const TString& rawJson, const THash
{unboxedValueJson, unboxedValueVariables},
{binaryJsonRoot, binaryJsonVariables},
};
- for (const auto testCase : testCases) {
+ for (const auto& testCase : testCases) {
const auto result = ExecuteJsonPath(jsonPath, testCase.first, testCase.second, &ValueBuilder);
UNIT_ASSERT_C(!result.IsError(), "Runtime errors found");