Branch Coverage

src/common.c
Criterion Covered Total %
branch 38 62 61.2


line true false branch
26 1189 5941 if ( buffer_len(buf) < min_wanted ) {
36 22 1167 if (min_wanted > max_wanted) {
49 1 1188 if ( (read = PerlIO_read(infile, tmp, actual_wanted)) <= 0 ) {
50 0 1 if ( PerlIO_error(infile) ) {
73 0 1188 if ( buffer_len(buf) < min_wanted ) {
99 9799 1095 while (*p != 0) {
100 4719 5080 *p = toUPPER(*p);
113 0 260 if (!comment) {
121 0 260 if (half == NULL) {
136 2 258 if (hv_exists(tags, key, klen)) {
140 0 2 if (SvOK(*entry)) {
0 0 if (SvOK(*entry)) {
0 0 if (SvOK(*entry)) {
143 1 1 if (SvTYPE(*entry) == SVt_PV) {
149 1 0 } else if (SvTYPE(SvRV(*entry)) == SVt_PVAV) {
168 0 6 if (PerlIO_seek(infile, 0, SEEK_SET) < 0)
174 6 0 if (memcmp(buf, "ID3", 3) != 0)
180 0 0 if (buf[5] & 0x0F)
183 0 0 if ((buf[6] | buf[7] | buf[8] | buf[9]) & 0x80)
193 0 0 if (has_footer)
220 311 0 if ( !fstat( PerlIO_fileno(infile), &buf ) ) {
237 16 50 if ( value == NULL || value[0] == '0' ) {
1 15 if ( value == NULL || value[0] == '0' ) {
255 317615 0 while (*s && (p=strchr(b64,*s))) {
317608 7 while (*s && (p=strchr(b64,*s))) {
261 158804 158804 if (bit_offset < 3) {
290 0 6 if ( !_check_buf(infile, buf, 8, DEFAULT_BLOCK_SIZE) ) {
300 0 6 if ( !_check_buf(infile, buf, mime_length + 4, DEFAULT_BLOCK_SIZE) ) {
311 0 6 if ( !_check_buf(infile, buf, desc_length + 20, DEFAULT_BLOCK_SIZE) ) {
328 3 3 if ( _env_true("AUDIO_SCAN_NO_ARTWORK") ) {
332 0 3 if ( !_check_buf(infile, buf, *pic_length, *pic_length) ) {