Branch Coverage

blib/lib/App/WithSound.pm
Criterion Covered Total %
branch 19 28 67.8


line true false branch
30 0 2 unless (@argv)
37 1 1 if $retval > 255
57 0 2 if $pid
83 3 24 if (my $sound_file_path = $self->{'env'}{$env_name})
97 16 11 if (my $sound_file_path = $self->{'env'}{$env_name})
111 1 11 unless (-f $self->{'config_file_path'})
118 0 11 if $@
151 0 0 unless (open $devnull, '>', '/dev/null')
161 0 0 if $@
168 0 6 unless $mp3_file_path
171 0 6 unless (-f $mp3_file_path)
177 4 2 unless ($play_command)
190 2 6 if (not defined $command_retval) { }
3 3 elsif ($command_retval == 0) { }