MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlconfTestSuite

Function xmlconfTestSuite

ThirdParty/libxml2/vtklibxml2/runxmlconf.c:482–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

480}
481
482static int
483xmlconfTestSuite(xmlDocPtr doc, xmlNodePtr cur) {
484 xmlChar *profile;
485 int ret = 0;
486
487 profile = xmlGetProp(cur, BAD_CAST "PROFILE");
488 if (profile != NULL) {
489 printf("Test suite: %s\n", (char *) profile);
490 xmlFree(profile);
491 } else
492 printf("Test suite\n");
493 cur = cur->children;
494 while (cur != NULL) {
495 /* look only at elements we ignore everything else */
496 if (cur->type == XML_ELEMENT_NODE) {
497 if (xmlStrEqual(cur->name, BAD_CAST "TESTCASES")) {
498 ret += xmlconfTestCases(doc, cur, 1);
499 } else {
500 fprintf(stderr, "Unhandled element %s\n", (char *)cur->name);
501 }
502 }
503 cur = cur->next;
504 }
505 return(ret);
506}
507
508static void
509xmlconfInfo(void) {

Callers 1

xmlconfTestFunction · 0.85

Calls 5

xmlGetPropFunction · 0.85
printfFunction · 0.85
xmlStrEqualFunction · 0.85
xmlconfTestCasesFunction · 0.85
fprintfFunction · 0.85

Tested by

no test coverage detected