Branch Coverage

blib/lib/Audio/Wav/Write/Header.pm
Criterion Covered Total %
branch 31 50 62.0


line true false branch
48 0 2 if ($data_size % 2)
65 0 2 unless seek $handle, $seek_to, 0
70 0 2 unless seek $handle, $seek_to, 0
85 0 2 unless (exists $hash{'id'} and exists $hash{'data'})
96 8 8 if exists $hash{$key}
108 4 0 if (exists $hash{$need}) { }
116 2 2 if exists $hash{$key}
119 1 1 unless (exists $$self{'sampler'})
125 2 2 if exists $hash{$key}
135 0 2 unless $$self{'cues'}
141 6 0 if (exists $$cue{'label'})
144 6 0 if (exists $$cue{'note'})
149 0 2 unless keys %adtl
162 0 2 unless keys %{$$self{'details'}{'info'};}
167 0 2 unless $allowed{$key}
175 0 2 unless $$self{'cues'}
194 30 6 unless exists $plain{$field}
199 0 2 unless $data_len
208 0 2 unless exists $$self{'sampler'}
225 0 2 unless exists $$self{'display'}
240 0 8 unless $output
250 0 22 unless $data_len
251 12 10 if $data_len % 2
259 0 2 exists $$details{'wave-ex'} && $$details{'wave-ex'} ? :
260 0 2 $wave_ex ? :