Branch Coverage

BackupPC_XS.xs
Criterion Covered Total %
branch 0 262 0.0


line true false branch
58 0 0 if ( (listLen = bpc_attrib_xattrList(file, NULL, 0, 0)) > 0 ) {
61 0 0 if ( keys && bpc_attrib_xattrList(file, keys, listLen, 0) > 0 ) {
0 0 if ( keys && bpc_attrib_xattrList(file, keys, listLen, 0) > 0 ) {
63 0 0 for ( i = 0, p = keys ; i < listLen ; ) {
72 0 0 if ( !xattr ) continue;
77 0 0 if ( keys ) free(keys);
88 0 0 hv_get_uint(hv, "uid", file->uid);
0 0 hv_get_uint(hv, "uid", file->uid);
0 0 hv_get_uint(hv, "uid", file->uid);
89 0 0 hv_get_uint(hv, "gid", file->gid);
0 0 hv_get_uint(hv, "gid", file->gid);
0 0 hv_get_uint(hv, "gid", file->gid);
90 0 0 hv_get_uint(hv, "type", file->type);
0 0 hv_get_uint(hv, "type", file->type);
0 0 hv_get_uint(hv, "type", file->type);
91 0 0 hv_get_uint(hv, "mode", file->mode);
0 0 hv_get_uint(hv, "mode", file->mode);
0 0 hv_get_uint(hv, "mode", file->mode);
92 0 0 hv_get_uint(hv, "size", file->size);
0 0 hv_get_uint(hv, "size", file->size);
0 0 hv_get_uint(hv, "size", file->size);
93 0 0 hv_get_int(hv, "mtime", file->mtime);
0 0 hv_get_int(hv, "mtime", file->mtime);
0 0 hv_get_int(hv, "mtime", file->mtime);
94 0 0 hv_get_uint(hv, "inode", file->inode);
0 0 hv_get_uint(hv, "inode", file->inode);
0 0 hv_get_uint(hv, "inode", file->inode);
95 0 0 hv_get_uint(hv, "nlinks", file->nlinks);
0 0 hv_get_uint(hv, "nlinks", file->nlinks);
0 0 hv_get_uint(hv, "nlinks", file->nlinks);
96 0 0 hv_get_uint(hv, "compress", file->compress);
0 0 hv_get_uint(hv, "compress", file->compress);
0 0 hv_get_uint(hv, "compress", file->compress);
97 0 0 hv_get_str(hv, "digest", digestStr, digestLen);
0 0 hv_get_str(hv, "digest", digestStr, digestLen);
0 0 hv_get_str(hv, "digest", digestStr, digestLen);
98 0 0 if ( 0 < digestLen && digestLen <= sizeof(file->digest.digest) ) {
0 0 if ( 0 < digestLen && digestLen <= sizeof(file->digest.digest) ) {
104 0 0 if ( (svp = hv_fetch(hv, "xattr", 5, 0)) && *svp ) {
0 0 if ( (svp = hv_fetch(hv, "xattr", 5, 0)) && *svp ) {
105 0 0 if ( SvTYPE(SvRV(*svp)) != SVt_PVHV ) {
115 0 0 while ( (he = hv_iternext(hvXattr)) ) {
121 0 0 value = SvPV(valSV, valueLen);
140 0 0 if ( bpc_fileZIO_open(RETVAL, fileName, writeFile, compressLevel) < 0 ) {
156 0 0 if ( bpc_fileZIO_fdopen(RETVAL, stream, writeFile, compressLevel) < 0 ) {
198 0 0 if ( SvROK(data) ) {
199 0 0 str = SvPV(SvRV(data), len);
219 0 0 if ( SvROK(data) ) {
221 0 0 if (! SvOK(d))
0 0 if (! SvOK(d))
0 0 if (! SvOK(d))
223 0 0 SvGROW(d, len);
0 0 SvGROW(d, len);
224 0 0 str = SvPV(d, dLen);
226 0 0 if ( RETVAL >= 0 ) {
245 0 0 if ( bpc_fileZIO_readLine(fd, &str, &strLen) || !str ) XSRETURN_UNDEF;
0 0 if ( bpc_fileZIO_readLine(fd, &str, &strLen) || !str ) XSRETURN_UNDEF;
291 0 0 if ( !SvPOK(d) ) {
294 0 0 str = SvPV(d, len);
295 0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
298 0 0 if ( bpc_poolRefGet(info, &digest, &count) ) XSRETURN_UNDEF;
318 0 0 if ( !SvPOK(d) ) {
321 0 0 str = SvPV(d, len);
322 0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
344 0 0 if ( !SvPOK(d) ) {
347 0 0 str = SvPV(d, len);
348 0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
351 0 0 if ( bpc_poolRefDelete(info, &digest) ) XSRETURN_UNDEF;
371 0 0 if ( !SvPOK(d) ) {
374 0 0 str = SvPV(d, len);
375 0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
395 0 0 if ( !bpc_poolRefIterate(info, &digest, &count, &idx) ) {
396 0 0 EXTEND(SP, 3);
451 0 0 if ( SvPOK(d) ) {
452 0 0 str = SvPV(d, len);
453 0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
508 0 0 if ( SvPOK(d) ) {
509 0 0 str = SvPV(d, len);
510 0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
535 0 0 if ( d && SvPOK(d) ) {
0 0 if ( d && SvPOK(d) ) {
540 0 0 str = SvPV(d, len);
541 0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
551 0 0 if ( ret ) {
580 0 0 EXTEND(SP, 4);
596 0 0 if ( SvROK(data) ) {
597 0 0 str = SvPV(SvRV(data), len);
642 0 0 if ( fileName ) {
644 0 0 if ( !file ) XSRETURN_UNDEF;
650 0 0 if ( (entrySize = bpc_attrib_getEntries(dir, NULL, 0)) > 0 ) {
653 0 0 if ( entries && bpc_attrib_getEntries(dir, entries, entrySize) > 0 ) {
0 0 if ( entries && bpc_attrib_getEntries(dir, entries, entrySize) > 0 ) {
655 0 0 for ( i = 0, p = entries ; i < entrySize ; ) {
662 0 0 if ( !file ) continue;
667 0 0 if ( entries ) free(entries);
669 0 0 if ( !RETVAL ) XSRETURN_UNDEF;
685 0 0 if ( !file ) {
701 0 0 if ( digest && digest->len > 0 ) {
0 0 if ( digest && digest->len > 0 ) {
702 0 0 EXTEND(SP, 1);
715 0 0 if ( !bpc_attrib_fileIterate(dir, &file, &idx) && file ) {
0 0 if ( !bpc_attrib_fileIterate(dir, &file, &idx) && file ) {
716 0 0 EXTEND(SP, 2);
750 0 0 if ( !*dirPath ) dirPath = NULL;
763 0 0 if ( !*dirPath ) dirPath = NULL;
764 0 0 if ( d && SvPOK(d) ) {
0 0 if ( d && SvPOK(d) ) {
769 0 0 str = SvPV(d, len);
770 0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
0 0 if ( 0 < len && len < sizeof(digest.digest) ) {
842 0 0 if ( !file ) XSRETURN_UNDEF;
883 0 0 if ( !file ) XSRETURN_UNDEF;
935 0 0 if ( (entrySize = bpc_attribCache_getDirEntries(ac, pathCopy, NULL, 0)) > 0 ) {
938 0 0 if ( entries && bpc_attribCache_getDirEntries(ac, pathCopy, entries, entrySize) > 0 ) {
0 0 if ( entries && bpc_attribCache_getDirEntries(ac, pathCopy, entries, entrySize) > 0 ) {
940 0 0 for ( i = 0, p = entries ; i < entrySize ; ) {
950 0 0 if ( !file ) continue;
956 0 0 if ( entries ) free(entries);
958 0 0 if ( !RETVAL ) XSRETURN_UNDEF;
994 0 0 if ( bpc_fileDigest(fileName, compress, &digest) == 0 ) {
995 0 0 EXTEND(SP, 1);
1044 0 0 EXTEND(SP, 2);
1108 0 0 if ( mesgLen == 0 ) XSRETURN_UNDEF;
1111 0 0 for ( i = 0, p = mesg ; i < mesgLen ; ) {