Branch Coverage

blib/lib/Audio/Analyzer/ToneDetect.pm
Criterion Covered Total %
branch 35 38 92.1


line true false branch
27 2 1 if ($$self{'valid_tones'} and $$self{'valid_tones'} eq 'builtin')
32 0 3 unless _is_pow_of_two($$self{'chunk_size'})
54 1 2 if $new_tone_map
66 0 10 if ($min_tone_length)
79 182 100 if $detected_freq == $last_detected
80 0 100 if grep {$_ == $detected_freq;} @{$$self{'rejected_freqs'};}
83 93 7 if @buff > $chunks_required
84 90 10 unless @buff == $chunks_required and _all_match(\@buff)
87 4 6 unless $$self{'valid_tones'}
90 1 5 unless $valid_tone
91 1 4 wantarray ? :
102 1 2 wantarray ? :
111 6 836 if $upper
112 830 6 if $possibility <= $freq
113 6 830 if $possibility > $freq
116 2 4 $freq - $lower < $upper - $freq ? :
121 3 3 if ($$self{'valid_error_cb'})
124 2 1 if (defined $cb_result)
125 1 1 if $cb_result == 0