本文整理汇总了C++中TEST_CASE函数的典型用法代码示例。如果您正苦于以下问题:C++ TEST_CASE函数的具体用法?C++ TEST_CASE怎么用?C++ TEST_CASE使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了TEST_CASE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: run
void run() {
TEST_CASE(wrongParameterTo_va_start);
TEST_CASE(referenceAs_va_start);
TEST_CASE(va_end_missing);
TEST_CASE(va_list_usedBeforeStarted);
TEST_CASE(va_start_subsequentCalls);
}
示例2: run
void run() {
TEST_CASE(novardecl);
TEST_CASE(functionpar);
TEST_CASE(structmember);
TEST_CASE(ptrcompare);
TEST_CASE(ptrarithmetic);
}
示例3: run
void run() {
TEST_CASE(assignAndCompare); // assignment and comparison don't match
TEST_CASE(mismatchingBitAnd); // overlapping bitmasks
TEST_CASE(compare); // mismatching LHS/RHS in comparison
TEST_CASE(multicompare); // mismatching comparisons
TEST_CASE(duplicateIf); // duplicate conditions in if and else-if
}
示例4: main
int main(int argc, char * argv[])
{
test_case tests[] =
{
TEST_CASE(unpack_test),
TEST_CASE(unpack_test_with_extensions),
TEST_CASE(unpack_null_param_test),
TEST_CASE(unpack_bad_message_test)
};
int i;
int rc;
int not_ok = 0;
printf("1..%d\n", ARRAY_LEN(tests));
globus_module_activate(GLOBUS_GRAM_PROTOCOL_MODULE);
for (i = 0; i < ARRAY_LEN(tests); i++)
{
rc = tests[i].test_function();
if (rc != 0)
{
not_ok++;
printf("not ok # %s\n", tests[i].name);
}
else
{
printf("ok\n");
}
}
globus_module_deactivate(GLOBUS_GRAM_PROTOCOL_MODULE);
return not_ok;
}
示例5: run
void run() {
settings.platform(Settings::Unspecified);
settings.addEnabled("warning");
TEST_CASE(array_index_1);
TEST_CASE(array_index_2);
TEST_CASE(bitop);
}
示例6: run
void run() {
settings.addEnabled("warning");
TEST_CASE(assignmentInAssert);
TEST_CASE(functionCallInAssert);
TEST_CASE(memberFunctionCallInAssert);
TEST_CASE(safeFunctionCallInAssert);
}
示例7: TEST_CASE
namespace test
{
test_group discrete_genotype_matrix {
TEST_CASE(compute_derivatives_f),
TEST_CASE(compute_derivatives_q),
TEST_CASE(constructor)
};
}
示例8: run
void run()
{
TEST_CASE(linenumbers);
// TEST_CASE(linenumbers2);
TEST_CASE(xml);
TEST_CASE(include);
}
示例9: parse_tests
int parse_tests()
{
int result = 0;
TEST_CASE(test_parser_fixed_scalars, 0);
TEST_CASE(test_parser_errors, 0);
return result;
}
示例10: message_tests
int message_tests(void)
{
int result = 0;
TEST_CASE(test_init, 0);
TEST_CASE(test_send_to_messenger, 0);
TEST_CASE(test_receive_from_messenger, 0);
TEST_CASE(test_insufficient_check_depth, 0);
return result;
}
示例11: policy_tests
int policy_tests(void)
{
int result = 0;
char *test_group = "policy_tests";
TEST_CASE(test_link_name_lookup, 0);
TEST_CASE(test_link_name_tree_lookup, 0);
TEST_CASE(test_link_name_csv_parser, 0);
return result;
}
示例12: run
void run() {
TEST_CASE(division1);
TEST_CASE(division2);
TEST_CASE(division4);
TEST_CASE(division5);
TEST_CASE(division6);
TEST_CASE(division7);
TEST_CASE(division8);
TEST_CASE(division9);
TEST_CASE(division10);
TEST_CASE(division11); // no error when using "unsigned char" (it is promoted)
}
示例13: parse_tests
int parse_tests()
{
int result = 0;
char *test_group = "parse_tests";
TEST_CASE(test_parser_fixed_scalars, 0);
TEST_CASE(test_map, 0);
TEST_CASE(test_parser_errors, 0);
TEST_CASE(test_tracemask, 0);
TEST_CASE(test_integer_conversion, 0);
return result;
}
示例14: run
void run() {
// bail out if the tests are not executed from the base folder
{
std::ifstream fin("test/testfilelister.cpp");
if (!fin.is_open())
return;
}
TEST_CASE(isDirectory);
#ifndef _WIN32
TEST_CASE(absolutePath);
#endif
TEST_CASE(recursiveAddFiles);
}
示例15: run
void run() {
TEST_CASE(division1);
TEST_CASE(division2);
TEST_CASE(division4);
TEST_CASE(division5);
TEST_CASE(division6);
TEST_CASE(division7);
TEST_CASE(division8);
TEST_CASE(division9);
TEST_CASE(division10);
}