summaryrefslogtreecommitdiffstats
path: root/tests/wirs_tests.cpp
diff options
context:
space:
mode:
authorDouglas Rumbaugh <dbr4@psu.edu>2023-07-27 18:21:26 -0400
committerDouglas Rumbaugh <dbr4@psu.edu>2023-07-27 18:21:26 -0400
commitd6e08e9d8d3ac9b356ac50cee22b41f828160247 (patch)
tree2c1f62f6385072e1a824e557693634acc3136cdd /tests/wirs_tests.cpp
parentf462921cbc52688fb478c6ac86a891e596fd6053 (diff)
downloaddynamic-extension-d6e08e9d8d3ac9b356ac50cee22b41f828160247.tar.gz
Expanded query interface
Query interface now enables skipping of delete processing and stopping query processing when first match is found.
Diffstat (limited to 'tests/wirs_tests.cpp')
-rw-r--r--tests/wirs_tests.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/wirs_tests.cpp b/tests/wirs_tests.cpp
index 2fe7f68..a72f950 100644
--- a/tests/wirs_tests.cpp
+++ b/tests/wirs_tests.cpp
@@ -229,16 +229,16 @@ START_TEST(t_wirs_query_merge)
wirs_query_parms<WRec> parms = {lower_key, upper_key, k};
parms.rng = gsl_rng_alloc(gsl_rng_mt19937);
- std::vector<std::vector<WRec>> results(2);
+ std::vector<std::vector<Wrapped<WRec>>> results(2);
for (size_t i=0; i<1000; i++) {
auto state1 = WIRSQuery<WRec>::get_query_state(shard, &parms);
((WIRSState<WRec> *) state1)->sample_size = k;
- results[0] = strip_wrapping(WIRSQuery<WRec>::query(shard, state1, &parms));
+ results[0] = WIRSQuery<WRec>::query(shard, state1, &parms);
auto state2 = WIRSQuery<WRec>::get_query_state(shard, &parms);
((WIRSState<WRec> *) state2)->sample_size = k;
- results[1] = strip_wrapping(WIRSQuery<WRec>::query(shard, state2, &parms));
+ results[1] = WIRSQuery<WRec>::query(shard, state2, &parms);
WIRSQuery<WRec>::delete_query_state(state1);
WIRSQuery<WRec>::delete_query_state(state2);