本文整理汇总了C++中TestRunner::add方法的典型用法代码示例。如果您正苦于以下问题:C++ TestRunner::add方法的具体用法?C++ TestRunner::add怎么用?C++ TestRunner::add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TestRunner
的用法示例。
在下文中一共展示了TestRunner::add方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addtexttest
void addtexttest(TestRunner& runner) {
runner.add("text/setup", {"func"}, &setup_test);
runner.add("text/learning", {"func"}, &learning_test);
runner.add("text/predicting", {"func"}, &predicting_test);
runner.add("text/genpred", {"func"}, &genpred_test);
runner.add("text/genpredeval", {"func"}, &genpredeval_test);
}
示例2: main
int main(int argc, char *argv[])
{
using namespace dg::tests;
TestRunner Runner;
Runner.add(new TestDataFlow());
return Runner();
}
示例3: main
int main(void)
{
using namespace dg::tests;
TestRunner Runner;
Runner.add(new TestRefcount());
return Runner();
}
示例4: addoptdigitstest
void addoptdigitstest(TestRunner& runner) {
runner.add("optdigits/byexps", {"real"}, &byexps_test);
runner.add("optdigits/big", {"real"}, &big_test);
runner.add("optdigits/measure", {"func"}, &measure_test);
runner.add("optdigits/visuals", {"func"}, &visuals_test);
runner.add("optdigits/predict", {"func"}, &predict_test);
runner.add("optdigits/detailedpredict", {"func"}, &detailedpredict_test);
runner.add("optdigits/learning", {"func"}, &learning_test);
runner.add("optdigits/setup", {"func"}, &setup_test);
// big_test(ok);
/* measure_test(ok);
visuals_test(ok);
predict_test(ok);
learning_test(ok);
setup_test(ok);*/
}
示例5: addimagetest
void addimagetest(TestRunner& runner) {
runner.add("image/setup", {"func"}, &setup_test);
runner.add("image/invaders",{"func"}, &invaders_test);
runner.add("image/letters", {"func"}, &letters_test);
runner.add("image/deps", {"func"}, &deps_test);
runner.add("image/overlap", {"func"}, &overlap_test);
runner.add("image/implmask",{"func"}, &implmask_test);
runner.add("image/applybits_1exp",{"func"}, &applybits_1exp_test);
runner.add("image/applybits_2exp",{"func"}, &applybits_2exp_test);
runner.add("image/applybits_3exp",{"func"}, &applybits_3exp_test);
runner.add("image/inv_applybits_1exp",{"func"}, &inv_applybits_1exp_test);
runner.add("image/inv_applybits_2exp",{"func"}, &inv_applybits_2exp_test);
runner.add("image/inv_applybits_3exp",{"func"}, &inv_applybits_3exp_test);
runner.add("image/inv_applybits_4exp",{"func"}, &inv_applybits_4exp_test);
runner.add("image/inv_applybits_11exp",{"func"}, &inv_applybits_11exp_test);
runner.add("image/io",{"func"}, &simple_io_test);
runner.add("image/verbose_invaders_io",{"func"}, &verbose_invaders_io_test);
runner.add("image/invaders_io",{"func"}, &invaders_io_test);
runner.add("image/generate_invaders",{"func"}, &generate_invaders_test);
}
示例6: addstatlogbitstest
void addstatlogbitstest(TestRunner& runner) {
runner.add("statlogbits/setup_heart", {"func"}, &setup_heart_test);
runner.add("statlogbits/heart_exp_priories", {"func"}, &heart_exp_priories_test);
runner.add("statlogbits/heart", {"func"}, &run_heart_test);
runner.add("statlogbits/heart_scan", {"func"}, &run_heart_scan_test);
runner.add("statlogbits/heart_filter", {"func"}, &run_heart_filter_test);
runner.add("statlogbits/heart_prioriw", {"func"}, &run_heart_prioriw_test);
runner.add("statlogbits/heart_crosscompress", {"func"}, &run_heart_crosscompress_test);
runner.add("statlogbits/heart_narrowexps_crosscompress", {"func"}, &run_heart_narrowexps_crosscompress_test);
runner.add("statlogbits/heart_exps", {"func"}, &run_heart_exps_test_undef);
runner.add("statlogbits/heart_exps_b", {"func"}, &run_heart_exps_b_test_undef);
runner.add("statlogbits/heart_exps_b_scaled", {"func"}, &run_heart_exps_b_scaled_test_undef);
runner.add("statlogbits/heart_narrowexps_b", {"func"}, &run_heart_narrowexps_b_test_undef);
runner.add("statlogbits/heart_narrowexps_b_scaled", {"func"}, &run_heart_narrowexps_b_scaled_test_undef);
runner.add("statlogbits/heart_exps_noundefs", {"func"}, &run_heart_exps_test_noundefs);
runner.add("statlogbits/heart_exps_noundefs_b", {"func"}, &run_heart_exps_b_test_noundefs);
runner.add("statlogbits/heart_exps_noundefs_b_scaled", {"func"}, &run_heart_exps_b_scaled_test_noundefs);
runner.add("statlogbits/heart_narrowexps_noundefs_b", {"func"}, &run_heart_narrowexps_b_test_noundefs);
runner.add("statlogbits/heart_exps_segfault", {"func"}, &run_heart_exps_segfault_test);
runner.add("statlogbits/heart_dist", {"func"}, &run_heart_dist_test);
runner.add("statlogbits/setup_statlog_shuttle", {"func"}, &run_setup_statlog_shuttle_test);
runner.add("statlogbits/statlog_shuttle_singlerun",{"func"}, &run_statlog_shuttle_singlerun_test);
runner.add("statlogbits/statlog_shuttle_filter",{"func"}, &run_statlog_shuttle_filter_test);
runner.add("statlogbits/statlog_shuttle_filter_noundef",{"func"}, &run_statlog_shuttle_filter_noundef_test);
runner.add("statlogbits/statlog_shuttle_exps", {"func"}, &run_statlog_shuttle_exps_test);
runner.add("statlogbits/statlog_shuttle_exps_noundef", {"func"}, &run_statlog_shuttle_exps_noundef_test);
runner.add("statlogbits/statlog_shuttle_exps_noundef_b", {"func"}, &run_statlog_shuttle_exps_noundef_b_test);
runner.add("statlogbits/statlog_shuttle_exps_noundef_b_scaled", {"func"}, &run_statlog_shuttle_exps_noundef_b_scaled_test);
runner.add("statlogbits/australian", {"func"}, &run_australian_test);
runner.add("statlogbits/australian_filter", {"func"}, &run_australian_filter_test);
runner.add("statlogbits/australian_exps", {"func"}, &run_australian_exps_test);
runner.add("statlogbits/australian_exps_b", {"func"}, &run_australian_exps_b_test);
runner.add("statlogbits/australian_exps_b_scaled",{"func"}, &run_australian_exps_b_scaled_test);
runner.add("statlogbits/australian_prioriw", {"func"}, &run_australian_prioriw_test);
runner.add("statlogbits/australian_dist", {"func"}, &run_australian_dist_test);
runner.add("statlogbits/setup_germancredit", {"func"}, &run_setup_germancredit_test);
runner.add("statlogbits/germancredit_exps", {"func"}, &run_germancredit_exps_test);
runner.add("statlogbits/germancredit_exps_noundef", {"func"}, &run_germancredit_exps_noundef_test);
runner.add("statlogbits/germancredit_exps_noundef_b", {"func"}, &run_germancredit_exps_noundef_b_test);
runner.add("statlogbits/germancredit_exps_noundef_b_scaled", {"func"}, &run_germancredit_exps_noundef_b_scaled_test);
runner.add("statlogbits/germancredit_dist", {"func"}, &run_germancredit_dist_test);
}
示例7: addutilstest
void addutilstest(TestRunner& runner) {
runner.add("utils/bit_ref", {"func"}, &run_bit_ref_test);
runner.add("utils/bit_copy", {"func"}, &run_bit_copy_test);
runner.add("utils/bits_bitop", {"func"}, &run_bits_bitop_test);
runner.add("utils/bits_ref_andneg", {"func"}, &run_bits_ref_andneg_test);
runner.add("utils/bits_ref_and", {"func"}, &run_bits_ref_and_test);
runner.add("utils/bits_ref_or", {"func"}, &run_bits_ref_or_test);
runner.add("utils/bits_ref_fill", {"func"}, &run_bits_ref_fill_test);
runner.add("utils/bits_ref_perf", {"perf"}, &run_bits_ref_perf_test);
runner.add("utils/bits_andneg", {"func"}, &run_bits_andneg_test);
runner.add("utils/popcount", {"func"}, &run_popcount_test);
runner.add("utils/big_popcount", {"func"}, &run_big_popcount_test);
runner.add("utils/big_16b_popcount", {"func"}, &run_big_16b_popcount_test);
runner.add("utils/ndim", {"func"}, &run_ndim_test);
runner.add("utils/bchunk_iteration", {"func"}, &run_bchunk_iteration_test);
runner.add("utils/dim_bchunk_iteration", {"func"}, &run_dim_bchunk_iteration_test);
runner.add("utils/3dim_bchunk_iteration",{"func"},&run_3dim_bchunk_iteration_test);
runner.add("utils/bitmatrix", {"func"}, &run_bitmatrix_test);
runner.add("utils/bitmatrix_rzblit", {"func"}, &run_bitmatrix_rzblit_test);
runner.add("utils/bitmatrix_rzsetblit", {"func"}, &run_bitmatrix_rzsetblit_test);
}