Lines Matching refs:test_helper
148 struct test_helper { struct
157 struct test_helper<minimalNComparable<N> > { argument
167 struct test_helper<ThrowingConstructor> { argument
260 test_helper<T>::set(my_result, test_helper<T>::get(other)); in operator =()
263 void operator()(const T& new_bit) { test_helper<T>::sum(my_result, new_bit); } in operator ()()
274 test_helper<T>::set(my_result, test_helper<T>::get(other)); in operator =()
278 test_helper<T>::sum(my_result, new_bit); in operator ()()
279 test_helper<T>::init(new_bit); in operator ()()
283 test_helper<T>::init(zero); in AssertClean()
284 REQUIRE_MESSAGE(test_helper<T>::get(thread_local_value)==test_helper<T>::get(zero), in AssertClean()
309 test_helper<T>::sum( check_alignment(sums.local(),allocator_name), 1 ); in operator ()()
339 test_helper<T>::init(exemplar); in run_parallel_scalar_tests_nocombine()
345 test_helper<T>::init(iterator_sum); in run_parallel_scalar_tests_nocombine()
348 test_helper<T>::init(finit_ets_sum); in run_parallel_scalar_tests_nocombine()
351 test_helper<T>::init(const_iterator_sum); in run_parallel_scalar_tests_nocombine()
354 test_helper<T>::init(range_sum); in run_parallel_scalar_tests_nocombine()
357 test_helper<T>::init(const_range_sum); in run_parallel_scalar_tests_nocombine()
360 test_helper<T>::init(cconst_sum); in run_parallel_scalar_tests_nocombine()
363 test_helper<T>::init(assign_sum); in run_parallel_scalar_tests_nocombine()
366 test_helper<T>::init(cassgn_sum); in run_parallel_scalar_tests_nocombine()
368 test_helper<T>::init(non_cassgn_sum); in run_parallel_scalar_tests_nocombine()
371 test_helper<T>::init(static_sum); in run_parallel_scalar_tests_nocombine()
396 test_helper<T>::sum(iterator_sum, *i); in run_parallel_scalar_tests_nocombine()
402 test_helper<T>::sum(const_iterator_sum, *i); in run_parallel_scalar_tests_nocombine()
408 test_helper<T>::sum(range_sum, *i); in run_parallel_scalar_tests_nocombine()
415 test_helper<T>::sum(const_range_sum, *i); in run_parallel_scalar_tests_nocombine()
433 test_helper<T>::sum(cconst_sum, *i); in run_parallel_scalar_tests_nocombine()
441 test_helper<T>::sum(assign_sum, *i); in run_parallel_scalar_tests_nocombine()
448 test_helper<T>::sum(cassgn_sum, *i); in run_parallel_scalar_tests_nocombine()
454 test_helper<T>::sum(non_cassgn_sum, *i); in run_parallel_scalar_tests_nocombine()
459 test_helper<T>::sum(finit_ets_sum, *i); in run_parallel_scalar_tests_nocombine()
464 test_helper<T>::sum(static_sum, *i); in run_parallel_scalar_tests_nocombine()
469 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(iterator_sum)); in run_parallel_scalar_tests_nocombine()
470 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(const_iterator_sum)); in run_parallel_scalar_tests_nocombine()
471 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(range_sum)); in run_parallel_scalar_tests_nocombine()
472 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(const_range_sum)); in run_parallel_scalar_tests_nocombine()
474 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(cconst_sum)); in run_parallel_scalar_tests_nocombine()
475 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(assign_sum)); in run_parallel_scalar_tests_nocombine()
476 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(cassgn_sum)); in run_parallel_scalar_tests_nocombine()
477 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(non_cassgn_sum)); in run_parallel_scalar_tests_nocombine()
478 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(finit_ets_sum)); in run_parallel_scalar_tests_nocombine()
479 REQUIRE(EXPECTED_SUM*p == test_helper<T>::get(static_sum)); in run_parallel_scalar_tests_nocombine()
494 test_helper<T>::init(exemplar); in run_parallel_scalar_tests()
517 test_helper<T>::init(combine_sum); in run_parallel_scalar_tests()
520 test_helper<T>::init(combine_ref_sum); in run_parallel_scalar_tests()
523 test_helper<T>::init(accumulator_sum); in run_parallel_scalar_tests()
526 test_helper<T>::init(static_sum); in run_parallel_scalar_tests()
529 test_helper<T>::init(clearing_accumulator_sum); in run_parallel_scalar_tests()
553 test_helper<T>::sum(combine_sum, sums.combine(FunctionAdd<T>)); in run_parallel_scalar_tests()
554 test_helper<T>::sum(combine_ref_sum, sums.combine(FunctionAddByRef<T>)); in run_parallel_scalar_tests()
555 test_helper<T>::sum(static_sum, static_sums.combine(FunctionAdd<T>)); in run_parallel_scalar_tests()
573 REQUIRE(EXPECTED_SUM * p == test_helper<T>::get(combine_sum)); in run_parallel_scalar_tests()
574 REQUIRE(EXPECTED_SUM * p == test_helper<T>::get(combine_ref_sum)); in run_parallel_scalar_tests()
575 REQUIRE(EXPECTED_SUM * p == test_helper<T>::get(static_sum)); in run_parallel_scalar_tests()
576 REQUIRE(EXPECTED_SUM * p == test_helper<T>::get(accumulator_sum)); in run_parallel_scalar_tests()
577 REQUIRE(EXPECTED_SUM * p == test_helper<T>::get(clearing_accumulator_sum)); in run_parallel_scalar_tests()
599 test_helper<T>::set(one, 1); in operator ()()
615 parallel_vector_reduce_body ( ) : count(0) { test_helper<T>::init(sum); } in parallel_vector_reduce_body()
616 …arallel_vector_reduce_body<R, T> &, oneapi::tbb::split ) : count(0) { test_helper<T>::init(sum); } in parallel_vector_reduce_body()
623 test_helper<T>::sum(sum, *vi); in operator ()()
629 test_helper<T>::sum(sum,b.sum); in join()
644 test_helper<T>::init(sum); in run_parallel_vector_tests()
664 test_helper<T>::sum(sum, pvrb.sum); in run_parallel_vector_tests()
697 test_helper<T>::set(minus_one, -1); in run_parallel_vector_tests()
708 REQUIRE( test_helper<T>::get(pvrb2.sum) == N*p-pvrb2.count*25 ); in run_parallel_vector_tests()
715 double result_value = test_helper<T>::get(sum); in run_parallel_vector_tests()
729 test_helper<T>::init(sum); in run_cross_type_vector_tests()
750 test_helper<T>::sum(sum, pvrb.sum); in run_cross_type_vector_tests()
774 double result_value = test_helper<T>::get(sum); in run_cross_type_vector_tests()
782 test_helper<T>::init(sum); in run_serial_scalar_tests()
786 test_helper<T>::sum(sum,1); in run_serial_scalar_tests()
790 double result_value = test_helper<T>::get(sum); in run_serial_scalar_tests()
797 test_helper<T>::init(sum); in run_serial_vector_tests()
799 test_helper<T>::set(one, 1); in run_serial_vector_tests()
807 test_helper<T>::sum(sum, *i); in run_serial_vector_tests()
810 double result_value = test_helper<T>::get(sum); in run_serial_vector_tests()
910 REQUIRE(test_helper<T>::get(value) == Expected); in operator ()()
914 REQUIRE(test_helper<T>::get(value.second) == Expected*value.first); in operator ()()
924 test_helper<T>::set(src_init,EXPECTED); in run_assign_and_copy_constructor_test()
926 test_helper<T>::init(other_init); in run_assign_and_copy_constructor_test()
936 test_helper<T>::set(src_init,EXPECTED*17); in run_assign_and_copy_constructor_test()