Condition Coverage

blib/lib/Music/Audioscrobbler/MPD.pm
Criterion Covered Total %
condition 3 56 5.3


and 2 conditions

line l !l condition
780 0 0 ref $commands and scalar @{$commands;}

and 3 conditions

line !l l&&!r l&&r condition
367 0 0 0 $self->mpdsock and $self->is_connected
379 0 0 0 $self->mpdsock and $self->mpdsock->connected
403 0 0 0 $self->mpdsock and $self->mpdsock->connected
419 0 0 0 $self->mpdsock and $self->mpdsock->connected
565 0 0 0 exists $$self{'logfile'} and $$self{'logfile'}
590 0 0 0 exists $$self{'mas'} and ref $$self{'mas'}
654 0 0 0 defined $$self{'current_file'} and $$self{'running_time'} >= 240 || $$self{'running_time'} >= $$self{'song_duration'} / 2
0 0 0 defined $$self{'current_file'} and $$self{'running_time'} >= 240 || $$self{'running_time'} >= $$self{'song_duration'} / 2 and $$self{'song_duration'} >= 30 || $$self{'info'}{'mbid'}
669 0 0 0 defined $$self{'current_file'} and $$cinfo{'Time'}
0 0 0 defined $$self{'current_file'} and $$cinfo{'Time'} and $state eq 'play'
698 0 0 0 $$self{'state'} eq 'stop' and $$self{'running_time'}
713 0 0 0 $run_since_update > 0 and $run_since_update <= $time_since_update

or 2 conditions

line l !l condition
120 0 1 $ENV{'MPD_HOST'} || 'localhost'
0 1 $ENV{'MPD_PORT'} || 6600
163 1 0 shift() || {}

or 3 conditions

line l !l&&r !l&&!r condition
559 0 0 0 not $self->options->{'logfile'} or $self->options->{'logfile'} eq 'STDERR'
654 0 0 0 $$self{'running_time'} >= 240 || $$self{'running_time'} >= $$self{'song_duration'} / 2
0 0 0 $$self{'song_duration'} >= 30 || $$self{'info'}{'mbid'}
713 0 0 0 $run_since_update < -240 or $run_since_update < -1 * ($$self{'song_duration'} / 2)