本文整理汇总了C++中ADD_TEST函数的典型用法代码示例。如果您正苦于以下问题:C++ ADD_TEST函数的具体用法?C++ ADD_TEST怎么用?C++ ADD_TEST使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ADD_TEST函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: test_udp_declare
void
test_udp_declare(void) {
ADD_TEST(udp, stream_ipv4);
ADD_TEST(udp, stream_ipv6);
ADD_TEST(udp, datagram_ipv4);
ADD_TEST(udp, datagram_ipv6);
}
示例2: test_error_declare
static void
test_error_declare(void) {
ADD_TEST(error, error);
ADD_TEST(error, context);
ADD_TEST(error, thread);
ADD_TEST(error, output);
}
示例3: test_exception_declare
static void
test_exception_declare(void) {
ADD_TEST(exception, assert_handler);
ADD_TEST(exception, error);
ADD_TEST(exception, exception_handler);
ADD_TEST(exception, exception_thread);
}
示例4: test_ringbuffer_declare
void test_ringbuffer_declare( void )
{
ADD_TEST( ringbuffer, allocate );
ADD_TEST( ringbuffer, io );
ADD_TEST( ringbufferstream, threadedio );
}
示例5: ADD_TEST
QuadInterptest::QuadInterptest()
{
ADD_TEST(QuadInterptest::test_QuadInterp);
ADD_TEST(QuadInterptest::test_flat);
ADD_TEST(QuadInterptest::test_calc);
ADD_TEST(QuadInterptest::test_calc_nocalc);
}
示例6: test_declare
void test_declare( void )
{
ADD_TEST( hashmap, allocation );
ADD_TEST( hashmap, insert );
ADD_TEST( hashmap, erase );
ADD_TEST( hashmap, lookup );
}
示例7: setup_tests
int setup_tests(void)
{
#ifndef OPENSSL_NO_BF
# ifdef CHARSET_EBCDIC
int n;
ebcdic2ascii(cbc_data, cbc_data, strlen(cbc_data));
for (n = 0; n < 2; n++) {
ebcdic2ascii(bf_key[n], bf_key[n], strlen(bf_key[n]));
}
# endif
if (test_get_argument(0) != NULL) {
print_test_data();
} else {
ADD_ALL_TESTS(test_bf_ecb_raw, 2);
ADD_ALL_TESTS(test_bf_ecb, NUM_TESTS);
ADD_ALL_TESTS(test_bf_set_key, KEY_TEST_NUM-1);
ADD_TEST(test_bf_cbc);
ADD_TEST(test_bf_cfb64);
ADD_TEST(test_bf_ofb64);
}
#endif
return 1;
}
示例8: o_url_resolve_suite
void o_url_resolve_suite()
{
ADD_TEST(test_o_url_resolve_type, "Test a resolve of type from url");
ADD_TEST(test_o_url_resolve_information, "Test a url resolver information");
ADD_TEST(test_o_url_resolve_host_port_from_path, "Test a host and port resolve from path");
ADD_TEST(test_o_url_resolve_host_from_path, "Test an only host resolve from path");
}
示例9: test_profile_declare
static void test_profile_declare( void )
{
ADD_TEST( profile, initialize );
ADD_TEST( profile, output );
ADD_TEST( profile, thread );
ADD_TEST( profile, stream );
}
示例10: main
int main(int argc, char *argv[])
{
QCoreApplication app(argc, argv);
TestRunner &runner = *(new TestRunner());
qDebug() << app.arguments();
bool all = (app.arguments().size() <= 1);
#define ADD_TEST(TestName) \
qDebug() << "Test " << #TestName << " is enabled " \
<< (all || app.arguments().contains(#TestName)); \
if (all || app.arguments().contains(#TestName)) { \
runner << new TestName##Test(); \
}
ADD_TEST(Query)
ADD_TEST(ResultSet)
ADD_TEST(ResultSetQuickCheck)
ADD_TEST(ResultWatcher)
runner.start();
#undef ADD_TEST
return app.exec();
// QTest::qExec(&tc, argc, argv);
}
示例11: main
int main(int argc, char **argv)
{
ADD_TEST(test_tbl_standard);
ADD_TEST(test_standard_methods);
return run_tests(argv[0]);
}
示例12: ADD_TEST
Linktest::Linktest()
{
ADD_TEST(Linktest::test_send);
ADD_TEST(Linktest::test_send_connected);
ADD_TEST(Linktest::test_sendError);
ADD_TEST(Linktest::test_sendError_connected);
ADD_TEST(Linktest::test_disconnect);
}
示例13: test_event_declare
static void test_event_declare( void )
{
ADD_TEST( event, empty );
ADD_TEST( event, immediate );
ADD_TEST( event, delay );
ADD_TEST( event, immediate_threaded );
ADD_TEST( event, delay_threaded );
}
示例14: setup_tests
int setup_tests(void)
{
ADD_TEST(test_int_stack);
ADD_TEST(test_uchar_stack);
ADD_TEST(test_SS_stack);
ADD_TEST(test_SU_stack);
return 1;
}
示例15: ADD_TEST
Planttest::Planttest()
{
ADD_TEST(Planttest::test_getDisplacement);
ADD_TEST(Planttest::test_setDisplacement_wfmath);
ADD_TEST(Planttest::test_setDisplacement);
ADD_TEST(Planttest::test_getOrientation);
ADD_TEST(Planttest::test_setHeight);
}