summaryrefslogtreecommitdiffstats
path: root/tests/wirs_tests.cpp
diff options
context:
space:
mode:
authorDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-06-09 11:39:01 -0400
committerDouglas B. Rumbaugh <doug@douglasrumbaugh.com>2023-06-09 11:39:01 -0400
commit9973065a1eebac0ccfb8dd16cd723290cdf82734 (patch)
treec83c3be359d7d76eb69358c3562c49e51967c800 /tests/wirs_tests.cpp
parentf73a55cb2c8d8d800a379f9272a5c6b4730587a7 (diff)
downloaddynamic-extension-9973065a1eebac0ccfb8dd16cd723290cdf82734.tar.gz
Adjusted tests to account for new sampling interface
Diffstat (limited to 'tests/wirs_tests.cpp')
-rw-r--r--tests/wirs_tests.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/wirs_tests.cpp b/tests/wirs_tests.cpp
index 60537e5..ddf9764 100644
--- a/tests/wirs_tests.cpp
+++ b/tests/wirs_tests.cpp
@@ -190,6 +190,7 @@ START_TEST(t_wirs_query)
for (size_t i=0; i<1000; i++) {
auto state = WIRSQuery<WRec>::get_query_state(shard, &parms);
+ ((WIRSState<WRec> *) state)->sample_size = k;
auto result = WIRSQuery<WRec>::query(shard, state, &parms);
total_samples += result.size();
@@ -232,9 +233,11 @@ START_TEST(t_wirs_query_merge)
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));
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));
WIRSQuery<WRec>::delete_query_state(state1);
@@ -274,6 +277,7 @@ START_TEST(t_wirs_buffer_query_scan)
for (size_t i=0; i<1000; i++) {
auto state = WIRSQuery<WRec, false>::get_buffer_query_state(buffer, &parms);
+ ((WIRSBufferState<WRec> *) state)->sample_size = k;
auto result = WIRSQuery<WRec, false>::buffer_query(buffer, state, &parms);
total_samples += result.size();
@@ -313,6 +317,7 @@ START_TEST(t_wirs_buffer_query_rejection)
for (size_t i=0; i<1000; i++) {
auto state = WIRSQuery<WRec>::get_buffer_query_state(buffer, &parms);
+ ((WIRSBufferState<WRec> *) state)->sample_size = k;
auto result = WIRSQuery<WRec>::buffer_query(buffer, state, &parms);
total_samples += result.size();