Branch Coverage

blib/lib/Nagios/Plugin/Beanstalk.pm
Criterion Covered Total %
branch 0 54 0.0


line true false branch
80 0 0 if $port
83 0 0 if 1 < ($opts->verbose || 0)
85 0 0 unless _check_beanstalk($self, $client, $opts)
95 0 0 unless $client->connect
97 0 0 unless my(@tube) = $client->list_tubes
99 0 0 if $opts->verbose
101 0 0 unless $opts->get('tube')
102 0 0 if (@opt_tube)
103 0 0 $opt_tube[0] =~ /^!/ ? :
108 0 0 $opt_tube =~ s/^!// ? :
109 0 0 if ($opt_tube =~ s/^~//) { }
123 0 0 $check_active ? :
0 0 unless $check_active ? _check_tube_active($self, $client, $tube) : _check_tube($self, $client, $tube)
134 0 0 if $self->opts->verbose
136 0 0 unless $client->use($tube)
142 0 0 if ($urgent)
143 0 0 unless $stats_tube = $client->stats_tube($tube)
146 0 0 if (not $stats_tube or $stats_tube->current_jobs_urgent)
148 0 0 if (my $job = $client->peek_ready) { }
0 0 elsif ($client->error =~ /NOT_FOUND/) { }
149 0 0 unless my $stats = $job->stats
152 0 0 if $stats->state eq 'reserved'
155 0 0 if $urgent and $stats->pri >= 1024
183 0 0 if $self->opts->verbose
190 0 0 unless my $stats = $client->stats_tube($tube)
192 0 0 if $w > $workers
193 0 0 if $workers >= $warning