Branch Coverage

bpc_lib.c
Criterion Covered Total %
branch 0 116 0.0


line true false branch
37 0 0 if ( logLevel >= 8 ) bpc_logMsgf("bpc_lib_conf_init: topDir = %s, logLevel = %d\n", topDir, logLevel);
57 0 0 if ( logLevel >= 0 ) {
75 0 0 if ( '0' <= c && c <= '9' ) return c - '0';
0 0 if ( '0' <= c && c <= '9' ) return c - '0';
76 0 0 if ( 'A' <= c && c <= 'F' ) return 0xa + (c - 'A');
0 0 if ( 'A' <= c && c <= 'F' ) return 0xa + (c - 'A');
77 0 0 if ( 'a' <= c && c <= 'f' ) return 0xa + (c - 'a');
0 0 if ( 'a' <= c && c <= 'f' ) return 0xa + (c - 'a');
100 0 0 if ( ext == 0 ) return;
101 0 0 for ( i = 24 ; i >= 0 ; i -= 8 ) {
102 0 0 if ( ext >= (1U << i) ) {
113 0 0 if ( digest1->len != digest2->len ) return digest1->len - digest2->len;
122 0 0 for ( i = 0 ; i < digest->len ; i++ ) {
131 0 0 for ( digest->len = 0 ; hexStr[0] && hexStr[1] && digest->len < BPC_DIGEST_LEN_MAX ; hexStr += 2 ) {
0 0 for ( digest->len = 0 ; hexStr[0] && hexStr[1] && digest->len < BPC_DIGEST_LEN_MAX ; hexStr += 2 ) {
0 0 for ( digest->len = 0 ; hexStr[0] && hexStr[1] && digest->len < BPC_DIGEST_LEN_MAX ; hexStr += 2 ) {
156 0 0 if ( digest->len == sizeof(emptyFileMD5) && !memcmp(digest->digest, emptyFileMD5, sizeof(emptyFileMD5)) ) {
0 0 if ( digest->len == sizeof(emptyFileMD5) && !memcmp(digest->digest, emptyFileMD5, sizeof(emptyFileMD5)) ) {
160 0 0 strncpy(path, compress ? BPC_CPoolDir : BPC_PoolDir, BPC_MAXPATHLEN - 32);
181 0 0 for ( i = 16 ; i < digest->len ; i++ ) {
184 0 0 if ( ext > 0 ) {
185 0 0 snprintf(path, BPC_MAXPATHLEN, "%s/%c/%c/%c/%s_%d", compress ? BPC_CPoolDir3 : BPC_PoolDir3, n0, n1, n2, hexStr, ext);
187 0 0 snprintf(path, BPC_MAXPATHLEN, "%s/%c/%c/%c/%s", compress ? BPC_CPoolDir3 : BPC_PoolDir3, n0, n1, n2, hexStr);
199 0 0 if ( bufferLen > 262144 ) {
219 0 0 if ( !*pathUM || (stopAtSlash && *pathUM == '/') ) {
0 0 if ( !*pathUM || (stopAtSlash && *pathUM == '/') ) {
0 0 if ( !*pathUM || (stopAtSlash && *pathUM == '/') ) {
224 0 0 for ( ; *pathUM && pathSize > 4 ; ) {
0 0 for ( ; *pathUM && pathSize > 4 ; ) {
225 0 0 if ( stopAtSlash && *pathUM == '/' ) break;
0 0 if ( stopAtSlash && *pathUM == '/' ) break;
226 0 0 if ( *pathUM != '%' && *pathUM != '/' && *pathUM != '\n' && *pathUM != '\r' ) {
0 0 if ( *pathUM != '%' && *pathUM != '/' && *pathUM != '\n' && *pathUM != '\r' ) {
0 0 if ( *pathUM != '%' && *pathUM != '/' && *pathUM != '\n' && *pathUM != '\r' ) {
0 0 if ( *pathUM != '%' && *pathUM != '/' && *pathUM != '\n' && *pathUM != '\r' ) {
246 0 0 for ( ; *pathUM && pathSize > 4 ; ) {
0 0 for ( ; *pathUM && pathSize > 4 ; ) {
252 0 0 if ( !(p = strchr(pathUM, '/')) ) break;
253 0 0 for ( pathUM = p + 1 ; *pathUM == '/' ; pathUM++ ) { }
254 0 0 if ( *pathUM ) {
284 0 0 if ( !LogData.mesg ) {
287 0 0 if ( !(LogData.mesg = malloc(LogData.mesgSize)) ) {
293 0 0 if ( BPC_TmpFileUnique >= 0 ) pad = 2;
295 0 0 if ( strLen + 2 + pad + LogData.mesgLen > LogData.mesgSize ) {
297 0 0 if ( !(LogData.mesg = realloc(LogData.mesg, LogData.mesgSize)) ) {
306 0 0 if ( strLen > 0 ) {
307 0 0 if ( pad ) {
308 0 0 LogData.mesg[LogData.mesgLen++] = BPC_TmpFileUnique ? 'G' : 'R';
313 0 0 if ( LogMsgCB ) {
330 0 0 if ( !LogData.mesg ) {
333 0 0 if ( !(LogData.mesg = malloc(LogData.mesgSize)) ) {
339 0 0 if ( BPC_TmpFileUnique >= 0 ) pad = 2;
341 0 0 if ( strLen + 2 + pad + LogData.mesgLen > LogData.mesgSize ) {
343 0 0 if ( !(LogData.mesg = realloc(LogData.mesg, LogData.mesgSize)) ) {
352 0 0 if ( strLen > 0 ) {
353 0 0 if ( pad ) {
354 0 0 LogData.mesg[LogData.mesgLen++] = BPC_TmpFileUnique ? 'G' : 'R';
359 0 0 if ( LogMsgCB ) {