Branch Coverage

src/dsf.c
Criterion Covered Total %
branch 25 50 50.0


line true false branch
34 0 2 if ( !_check_buf(infile, &buf, 80, DSF_BLOCK_SIZE) ) {
39 2 0 if ( !strncmp( (char *)buffer_ptr(&buf), "DSD ", 4 ) ) {
48 2 0 if ((chunk_size != 28) ||
0 2 if ((chunk_size != 28) ||
55 0 2 if ( strncmp( (char *)buffer_ptr(&buf), "fmt ", 4 ) ) {
72 2 0 if ( (chunk_size != 52) ||
2 0 if ( (chunk_size != 52) ||
73 2 0 (format_version != 1) ||
74 2 0 (format_id != 0) ||
75 2 0 (channel_type != 2) ||
76 2 0 (channel_num != 2) ||
77 0 2 (block_size_per_channel != 4096) ||
86 0 2 if ( strncmp( (char *)buffer_ptr(&buf), "data", 4 ) ) {
107 2 0 if (metadata_offset) {
110 0 2 if ( !_check_buf(infile, &buf, 10, DSF_BLOCK_SIZE) ) {
115 2 0 if (
116 2 0 (bptr[0] == 'I' && bptr[1] == 'D' && bptr[2] == '3') &&
2 0 (bptr[0] == 'I' && bptr[1] == 'D' && bptr[2] == '3') &&
2 0 (bptr[0] == 'I' && bptr[1] == 'D' && bptr[2] == '3') &&
117 2 0 bptr[3] < 0xff && bptr[4] < 0xff &&
2 0 bptr[3] < 0xff && bptr[4] < 0xff &&
118 2 0 bptr[6] < 0x80 && bptr[7] < 0x80 && bptr[8] < 0x80 && bptr[9] < 0x80
2 0 bptr[6] < 0x80 && bptr[7] < 0x80 && bptr[8] < 0x80 && bptr[9] < 0x80
2 0 bptr[6] < 0x80 && bptr[7] < 0x80 && bptr[8] < 0x80 && bptr[9] < 0x80
133 0 2 if (err) return err;