Lines Matching refs:cur

238 getNext(xmlNodePtr cur, const char *xpath) {  in getNext()  argument
243 if ((cur == NULL) || (cur->doc == NULL) || (xpath == NULL)) in getNext()
245 ctxtXPath->doc = cur->doc; in getNext()
246 ctxtXPath->node = cur; in getNext()
266 getString(xmlNodePtr cur, const char *xpath) { in getString() argument
271 if ((cur == NULL) || (cur->doc == NULL) || (xpath == NULL)) in getString()
273 ctxtXPath->doc = cur->doc; in getString()
274 ctxtXPath->node = cur; in getString()
299 xsdIncorectTestCase(xmlNodePtr cur) { in xsdIncorectTestCase() argument
306 cur = getNext(cur, "./incorrect[1]"); in xsdIncorectTestCase()
307 if (cur == NULL) { in xsdIncorectTestCase()
311 test = getNext(cur, "./*"); in xsdIncorectTestCase()
314 xmlGetLineNo(cur)); in xsdIncorectTestCase()
351 xmlGetLineNo(cur), xmlMemUsed() - memt); in xsdIncorectTestCase()
420 xmlNodePtr test, tmp, cur; in xsdTestCase() local
441 cur = getNext(tst, "./correct[1]"); in xsdTestCase()
442 if (cur == NULL) { in xsdTestCase()
446 test = getNext(cur, "./*"); in xsdTestCase()
449 xmlGetLineNo(cur)); in xsdTestCase()
484 tmp = getNext(cur, "following-sibling::valid[1]"); in xsdTestCase()
544 tmp = getNext(cur, "following-sibling::invalid[1]"); in xsdTestCase()
605 xmlGetLineNo(cur), xmlMemUsed() - memt); in xsdTestCase()
612 xsdTestSuite(xmlNodePtr cur) { in xsdTestSuite() argument
614 xmlChar *doc = getString(cur, "string(documentation)"); in xsdTestSuite()
621 cur = getNext(cur, "./testCase[1]"); in xsdTestSuite()
622 while (cur != NULL) { in xsdTestSuite()
623 xsdTestCase(cur); in xsdTestSuite()
624 cur = getNext(cur, "following-sibling::testCase[1]"); in xsdTestSuite()
633 xmlNodePtr cur; in xsdTest() local
644 cur = xmlDocGetRootElement(doc); in xsdTest()
645 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in xsdTest()
651 cur = getNext(cur, "./testSuite[1]"); in xsdTest()
652 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in xsdTest()
657 while (cur != NULL) { in xsdTest()
658 xsdTestSuite(cur); in xsdTest()
659 cur = getNext(cur, "following-sibling::testSuite[1]"); in xsdTest()
669 rngTestSuite(xmlNodePtr cur) { in rngTestSuite() argument
671 xmlChar *doc = getString(cur, "string(documentation)"); in rngTestSuite()
677 doc = getString(cur, "string(section)"); in rngTestSuite()
684 cur = getNext(cur, "./testSuite[1]"); in rngTestSuite()
685 while (cur != NULL) { in rngTestSuite()
686 xsdTestSuite(cur); in rngTestSuite()
687 cur = getNext(cur, "following-sibling::testSuite[1]"); in rngTestSuite()
696 xmlNodePtr cur; in rngTest1() local
707 cur = xmlDocGetRootElement(doc); in rngTest1()
708 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in rngTest1()
714 cur = getNext(cur, "./testSuite[1]"); in rngTest1()
715 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in rngTest1()
720 while (cur != NULL) { in rngTest1()
721 rngTestSuite(cur); in rngTest1()
722 cur = getNext(cur, "following-sibling::testSuite[1]"); in rngTest1()
734 xmlNodePtr cur; in rngTest2() local
745 cur = xmlDocGetRootElement(doc); in rngTest2()
746 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in rngTest2()
752 cur = getNext(cur, "./testSuite[1]"); in rngTest2()
753 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSuite"))) { in rngTest2()
758 while (cur != NULL) { in rngTest2()
759 xsdTestSuite(cur); in rngTest2()
760 cur = getNext(cur, "following-sibling::testSuite[1]"); in rngTest2()
776 xstcTestInstance(xmlNodePtr cur, xmlSchemaPtr schemas, in xstcTestInstance() argument
788 href = getString(cur, in xstcTestInstance()
792 xmlGetLineNo(cur)); in xstcTestInstance()
800 xmlGetLineNo(cur), href); in xstcTestInstance()
806 xmlGetLineNo(cur), path); in xstcTestInstance()
810 validity = getString(cur, in xstcTestInstance()
814 xmlGetLineNo(cur)); in xstcTestInstance()
853 xmlGetLineNo(cur), validity); in xstcTestInstance()
867 xmlGetLineNo(cur), xmlMemUsed() - mem); in xstcTestInstance()
874 xstcTestGroup(xmlNodePtr cur, const char *base) { in xstcTestGroup() argument
886 href = getString(cur, in xstcTestGroup()
890 xmlGetLineNo(cur)); in xstcTestGroup()
897 xmlGetLineNo(cur), href); in xstcTestGroup()
903 xmlGetLineNo(cur), path); in xstcTestGroup()
907 validity = getString(cur, in xstcTestGroup()
911 xmlGetLineNo(cur)); in xstcTestGroup()
938 instance = getNext(cur, "./ts:instanceTest[1]"); in xstcTestGroup()
976 xmlGetLineNo(cur), validity); in xstcTestGroup()
989 xmlGetLineNo(cur), path, xmlMemUsed() - mem); in xstcTestGroup()
998 xmlNodePtr cur; in xstcMetadata() local
1009 cur = xmlDocGetRootElement(doc); in xstcMetadata()
1010 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testSet"))) { in xstcMetadata()
1014 contributor = xmlGetProp(cur, BAD_CAST "contributor"); in xstcMetadata()
1018 name = xmlGetProp(cur, BAD_CAST "name"); in xstcMetadata()
1026 cur = getNext(cur, "./ts:testGroup[1]"); in xstcMetadata()
1027 if ((cur == NULL) || (!xmlStrEqual(cur->name, BAD_CAST "testGroup"))) { in xstcMetadata()
1032 while (cur != NULL) { in xstcMetadata()
1033 xstcTestGroup(cur, base); in xstcMetadata()
1034 cur = getNext(cur, "following-sibling::ts:testGroup[1]"); in xstcMetadata()