summaryrefslogtreecommitdiffstats
path: root/eval/src/tests/instruction
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2021-04-07 10:28:42 +0000
committerArne Juul <arnej@verizonmedia.com>2021-04-07 10:28:42 +0000
commitfa409f3a843f4e5c1c17fbd1bcf5b9e09dfad7f1 (patch)
tree09fa153ced9fe8760f63e24ca63d33632076710b /eval/src/tests/instruction
parentde080e77a2fd2730e37fcd7c7ae02f9bf36c43c6 (diff)
inplace -> primary_is_mutable
Diffstat (limited to 'eval/src/tests/instruction')
-rw-r--r--eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp b/eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp
index 4bdc342b629..4a0eb00e7e7 100644
--- a/eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp
+++ b/eval/src/tests/instruction/join_with_number/join_with_number_function_test.cpp
@@ -33,11 +33,12 @@ std::ostream &operator<<(std::ostream &os, Primary primary)
struct FunInfo {
using LookFor = JoinWithNumberFunction;
Primary primary;
+ bool pri_mut;
bool inplace;
void verify(const EvalFixture &fixture, const LookFor &fun) const {
EXPECT_TRUE(fun.result_is_mutable());
EXPECT_EQUAL(fun.primary(), primary);
- EXPECT_EQUAL(fun.inplace(), inplace);
+ EXPECT_EQUAL(fun.primary_is_mutable(), pri_mut);
if (inplace) {
size_t idx = (fun.primary() == Primary::LHS) ? 0 : 1;
EXPECT_EQUAL(fixture.result_value().cells().data,
@@ -46,13 +47,13 @@ struct FunInfo {
}
};
-void verify_optimized(const vespalib::string &expr, Primary primary, bool inplace) {
+void verify_optimized(const vespalib::string &expr, Primary primary, bool pri_mut) {
UNWIND_MSG("optimize %s", expr.c_str());
const CellTypeSpace stable_types(CellTypeUtils::list_stable_types(), 2);
- FunInfo stable_details{primary, inplace};
+ FunInfo stable_details{primary, pri_mut, pri_mut};
TEST_DO(EvalFixture::verify<FunInfo>(expr, {stable_details}, stable_types));
const CellTypeSpace unstable_types(CellTypeUtils::list_unstable_types(), 2);
- FunInfo unstable_details{primary, false};
+ FunInfo unstable_details{primary, pri_mut, false};
TEST_DO(EvalFixture::verify<FunInfo>(expr, {unstable_details}, unstable_types));
}