Branch Coverage

xpath.c
Criterion Covered Total %
branch 49 100 49.0


line true false branch
25 1 0 if ((nargs < 1) || (nargs > 2)) {
0 1 if ((nargs < 1) || (nargs > 2)) {
29 0 1 if (ctxt->value == NULL) {
34 0 1 if (nargs == 2) {
35 0 0 if (ctxt->value->type != XPATH_NODESET) {
48 0 1 if (ctxt->value->type == XPATH_NODESET) {
55 0 0 if (obj->nodesetval) {
56 0 0 for (i = 0; i < obj->nodesetval->nodeNr; i++) {
60 0 0 if (nargs == 2) {
75 0 0 if (obj2 != NULL)
87 0 1 if (ctxt->value->type != XPATH_STRING) {
89 0 0 if (obj2 != NULL)
98 0 1 if (obj->stringval == NULL) {
101 0 1 if ((obj2 != NULL) && (obj2->nodesetval != NULL) &&
0 0 if ((obj2 != NULL) && (obj2->nodesetval != NULL) &&
0 0 if ((obj2 != NULL) && (obj2->nodesetval != NULL) &&
106 0 0 if (target->type == XML_ATTRIBUTE_NODE) {
114 1 0 if (base != NULL)
116 0 1 if (URI == NULL) {
119 0 1 if (xmlStrEqual(ctxt->context->node->doc->URL, URI)) {
125 0 1 if (doc == NULL)
137 0 1 if (obj2 != NULL)
157 20 123 if ( comp == NULL ) {
169 129 0 if ( refNode != NULL && comp != NULL ) {
129 0 if ( refNode != NULL && comp != NULL ) {
175 0 129 if ( comp == NULL ) {
179 0 129 if ( refNode->doc == NULL ) {
188 0 0 while ( froot != NULL ) {
189 0 0 if ( froot->parent == NULL ) {
204 85 44 if (refNode->type == XML_DOCUMENT_NODE) {
212 41 88 if (ctxt->namespaces != NULL) {
213 53 41 while (ctxt->namespaces[ctxt->nsNr] != NULL)
220 8 121 if (to_bool) {
235 41 88 if (ctxt->namespaces != NULL) {
241 0 129 if ( tdoc != NULL ) {
266 84 8 if (res != NULL) {
289 3 0 if (res != NULL) {
314 122 0 if ( ctxt->node != NULL && path != NULL ) {
122 0 if ( ctxt->node != NULL && path != NULL ) {
317 0 122 if ( comp == NULL ) {
329 129 0 if ( ctxt != NULL && ctxt->node != NULL && comp != NULL ) {
129 0 if ( ctxt != NULL && ctxt->node != NULL && comp != NULL ) {
129 0 if ( ctxt != NULL && ctxt->node != NULL && comp != NULL ) {
333 3 126 if ( ctxt->node->doc == NULL ) {
343 4 0 while ( froot != NULL ) {
344 3 1 if ( froot->parent == NULL ) {
354 3 126 if (to_bool) {
369 3 125 if ( tdoc != NULL ) {
377 3 0 if (ctxt->node) {
393 0 0 if (res != NULL) {