当前位置: 首页>>代码示例>>C++>>正文


C++ TestRunner::add方法代码示例

本文整理汇总了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);
}
开发者ID:cgiogkarakis,项目名称:libreexp,代码行数:7,代码来源:text.cpp

示例2: main

int main(int argc, char *argv[])
{
    using namespace dg::tests;
    TestRunner Runner;

    Runner.add(new TestDataFlow());

    return Runner();
}
开发者ID:pablo-aledo,项目名称:dg,代码行数:9,代码来源:data-flow-test.cpp

示例3: main

int main(void)
{
    using namespace dg::tests;

    TestRunner Runner;

    Runner.add(new TestRefcount());

    return Runner();
}
开发者ID:tomsik68,项目名称:dg,代码行数:10,代码来源:llvm-dg-test.cpp

示例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);*/
}
开发者ID:arauhala,项目名称:libreexp,代码行数:16,代码来源:optdigitstest.cpp

示例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);
}
开发者ID:arauhala,项目名称:libreexp,代码行数:20,代码来源:imagetest.cpp

示例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);
}
开发者ID:arauhala,项目名称:libreexp,代码行数:42,代码来源:statlogbitstest.cpp

示例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);
}
开发者ID:cgiogkarakis,项目名称:libreexp,代码行数:21,代码来源:utilstest.cpp


注:本文中的TestRunner::add方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。