Tests
The following is auto-generated documentation for our test suite. The source code will be more useful for understanding the tests.
test_shuffle
Functions
-
void test_shuffle_gen_perm(int test_size)
-
void test_shuffle_local_apply_perm(int test_size)
-
void test_shuffle_oblivious_apply_sharded_perm(int test_size)
-
void test_oblivious_apply_elementwise_perm(int test_size)
-
void test_reverse_elementwise_permutation(int test_size)
-
void test_elementwise_permutation_b2a_conversion(int test_size)
-
void test_invert_elementwise_permutation(int test_size)
-
void test_resharing(int test_size)
-
template<typename T>
void test_shuffle_correctness(int test_size)
-
void test_permutation_composition(int test_size)
-
void test_table_shuffle(int num_rows, int num_columns)
-
int main(int argc, char **argv)
test_join
test_comparisons
Functions
-
int main(int argc, char **argv)
test_pooled
test_runtime
test_randomness
Functions
-
template<typename T>
void test_local_prg_randomness()
-
template<typename T>
void test_xchacha20_randomness()
-
void helper_check_group_generation_correct(int num_parties, int group_size, std::vector<std::set<int>> correct)
-
void test_group_generation()
-
template<typename T>
void test_3pc_common_prg_correctness()
-
template<typename T>
void test_4pc_common_prg_correctness()
-
template<typename T>
void test_common_prg_correctness_groups()
-
template<typename T>
void test_zero_sharing_generator_correctness()
-
template<typename T>
void test_zero_sharing_generator_groups()
-
int main(int argc, char **argv)
Variables
-
const int num_parties = PROTOCOL_NUM
test_malicious
Functions
-
bool joint_malicious_check()
Parties broadcast their checks, and then take AND of all received. This ensure tests pass regardless of which party actually detected the cheating.
-
int main(int argc, char **argv)
test_operators
Functions
-
void test_minimal_agg_example()
-
template<typename S>
void test_vector_aggregation(const size_t test_size = 32)
-
template<typename S>
void test_distinct(const int test_size = 32)
-
template<typename S>
void test_multi_distinct()
-
template<typename S>
void test_table_operators()
-
void test_max_monotonic()
Special test to confirm that MAX aggregation is properly incrementally computed (i.e., result is monotonic). We crucially rely on this fact for the implementation of the threshold session window operator.
This was previously broken due to a incorrect argument to an access pattern; it’s a gnarly bug and even the correct output is a bit tricky to follow, so I think this is a good test to keep.
-
void test_prefix_sum()
-
int main(int argc, char **argv)
test_securejoin
Test that SecureJoin is properly installed and basic functionality works.
Functions
-
int main(int argc, char **argv)
test_communication
Functions
-
template<typename T>
void TestBasicCommunication(const int &testSize)
-
int main(int argc, char **argv)
Variables
-
const int test_size = 1 << 16
test_computation_library
Functions
-
int main(int argc, char **argv)
test_sorting
Defines
-
TEST_SIZE
Functions
-
template<typename T>
void test_bitonicMerge(int test_size)
-
template<typename T>
void test_quicksort(int test_size)
-
template<typename T>
void test_radix_sort(int test_size)
-
void test_valid_bit_sorting(int test_size)
-
void test_table_sort_single(int num_rows, int num_columns, orq::SortingProtocol protocol)
-
void test_table_sort_multi(int num_rows, int num_columns, orq::SortingProtocol protocol, bool test_tiebreak_explicit)
-
void test_odd_even_merge(int test_size)
-
int main(int argc, char **argv)
test_io
Functions
-
int main(int argc, char **argv)
test_primitives
Defines
-
DEFINE_TEST_BINARY_OP(_op_, shareType, name)
Functions
-
template<typename T>
void test_b2a_bit(int test_size)
-
template<typename T>
void test_b2a(int test_size)
-
template<typename T>
void test_multiplication(int test_size)
-
template<typename T>
void test_binary_add(int test_size)
-
template<typename T>
void test_binary_subtract(int test_size)
-
template<typename T>
void test_and(int test_size)
-
template<typename T>
void test_xor(int test_size)
-
template<typename T>
void test_or(int test_size)
-
template<typename T>
void test_greater_than(int test_size)
-
template<typename T>
void test_less_than(int test_size)
-
template<typename T>
void test_private_division(int test_size)
-
template<typename T>
void test_dot_product(int test_size, const int aggSize = 7)
-
template<typename T>
void test_equals(int test_size)
-
int main(int argc, char **argv)
test_libote
Test that libOTe is properly installed and basic functionality works.
Functions
-
int main(int argc, char **argv)
test_count_wrong_div
Functions
-
int main(int argc, char **argv)
test_table_operators
test_bitonic_sort
Functions
-
int main(int argc, char **argv)