line |
!l |
l&&!r |
l&&r |
condition |
48
|
0 |
0 |
0 |
$self->opts->can('blacklist') and $self->opts->blacklist |
|
0 |
0 |
0 |
$self->opts->can('blacklist') and $self->opts->blacklist and -f $self->opts->blacklist |
350
|
3 |
0 |
0 |
$self->opts->name and $self->opts->name =~ /(%22)|(%27)/ |
359
|
0 |
0 |
0 |
defined $_->{'alias'} and grep {$self->opts->mode eq $_;} @{$$_{'alias'};} |
367
|
0 |
3 |
0 |
$self->opts->can('statefilesdir') and not $self->opts->statefilesdir |
386
|
0 |
3 |
0 |
$self->opts->can('warningx') and $self->opts->warningx |
392
|
0 |
3 |
0 |
$self->opts->can('criticalx') and $self->opts->criticalx |
444
|
134 |
0 |
0 |
$self->get_variable('verbose') and $self->get_variable('verbose') > $self->get_variable('verbosity', 10) |
563
|
0 |
0 |
0 |
defined $self->{$_} and ref $self->{$_} ne 'ARRAY' |
569
|
0 |
0 |
0 |
defined $self->{$_} and ref $self->{$_} eq 'ARRAY' |
|
0 |
0 |
0 |
defined $self->{$_} and ref($self->{$_}) =~ /^Classes::/ |
583
|
0 |
0 |
0 |
UNIVERSAL::can($obj, 'isa') and $obj->can('dump') |
587
|
0 |
0 |
0 |
UNIVERSAL::can($self->{$_}, 'isa') and $self->{$_}->can('dump') |
695
|
0 |
0 |
0 |
$self->can('compatibility_methods') and $self->isa($deprecated_class) |
719
|
0 |
0 |
0 |
$password and $password =~ m[^rfc3986://(.*)] |
833
|
0 |
0 |
0 |
$ENV{$survive_env} and not scalar grep({/^$survive_env=/;} keys %{$self->opts->environment;}) |
850
|
0 |
0 |
0 |
$1 eq $option and $2 =~ /s%/ |
864
|
0 |
0 |
0 |
$self->opts->runas and $> == 0 |
953
|
0 |
0 |
0 |
$level == 3 and $self->{'failed'} == 0 |
1036
|
0 |
0 |
0 |
exists $self->{'blacklisted'} and $self->{'blacklisted'} |
1129
|
10 |
21 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 |
|
31 |
0 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 and $params{'freeze'} == 0 |
|
10 |
21 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 |
|
31 |
0 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 and $params{'freeze'} == 1 |
|
10 |
21 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 |
|
31 |
0 |
0 |
$self->opts->lookback and $self->opts->lookback == 99999 and $params{'freeze'} == 2 |
1231
|
0 |
0 |
51 |
exists $self->{$_} and defined $self->{$_} |
|
0 |
20 |
31 |
exists $self->{$_} and defined $self->{$_} and $self->{$_} =~ /^\d+\.*\d*$/ |
1232
|
0 |
0 |
31 |
exists $last_values->{$_} and defined $last_values->{$_} |
1254
|
0 |
0 |
20 |
exists $last_values->{$_} && defined $last_values->{$_} |
|
20 |
0 |
0 |
not exists $last_values->{$_} && defined $last_values->{$_} and exists $params{'lastarray'} |
|
0 |
20 |
0 |
exists $last_values->{$_} and not defined $last_values->{$_} |
1283
|
0 |
0 |
0 |
exists $last_values->{$_} and defined $last_values->{$_} |
1284
|
0 |
0 |
0 |
exists $self->{$_} and defined $self->{$_} |
1383
|
0 |
0 |
0 |
ref $validfunc ne 'CODE' and $validfunc eq 'percent' |
|
0 |
0 |
0 |
ref $validfunc ne 'CODE' and $validfunc eq 'positive' |
1425
|
0 |
0 |
31 |
ref $params{'save'} eq 'HASH' and exists $params{'save'}{'timestamp'} |
1504
|
0 |
0 |
0 |
join '/', @dirs and not -d join('/', @dirs) |
line |
l |
!l&&r |
!l&&!r |
condition |
311
|
3 |
0 |
0 |
grep({$self->opts->mode eq $_;} map({$_->{'spec'};} @{$$Monitoring::GLPlugin::plugin{'modes'};})) || grep({$self->opts->mode eq $_;} map({defined $_->{'alias'} ? @{$_->{'alias'};} : ();} @{$$Monitoring::GLPlugin::plugin{'modes'};})) |
403
|
0 |
3 |
0 |
$timeout ||= $self->opts->timeout |
572
|
0 |
0 |
0 |
ref $obj ne 'HASH' or not exists $obj->{'flat_indices'} |
802
|
3 |
0 |
0 |
grep {$self->opts->mode eq $_;} map({$_->{'spec'};} @{$$Monitoring::GLPlugin::plugin{'modes'};}) or grep {$self->opts->mode eq $_;} map({defined $_->{'alias'} ? @{$_->{'alias'};} : ();} @{$$Monitoring::GLPlugin::plugin{'modes'};}) |
818
|
0 |
0 |
0 |
not $ENV{$_} or $ENV{$_} ne $self->opts->environment->{$_} |
889
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
895
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
901
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
907
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
949
|
0 |
0 |
0 |
$message ||= $self->{'info'} |
1152
|
26 |
5 |
0 |
$self->load_state(%params) || eval {
do {
my $empty_events = {};
foreach $_ (@keys) {
if (ref $self->{$_} eq 'ARRAY') {
$empty_events->{$_} = [];
}
else {
$empty_events->{$_} = 0;
};
};
$empty_events->{'timestamp'} = 0;
if ($mode eq 'lookback') {
$empty_events->{'lookback_history'} = {};
}
elsif ($mode eq 'lookback_freeze_chill') {
$empty_events->{'cold'} = {};
$empty_events->{'frozen'} = {};
};
$empty_events
}
} |
1230
|
14 |
37 |
0 |
$mode eq 'normal' or $mode eq 'lookback' |
|
51 |
0 |
0 |
$mode eq 'normal' or $mode eq 'lookback' or $mode eq 'lookback_freeze_chill' |
1254
|
20 |
0 |
0 |
exists $last_values->{$_} && defined $last_values->{$_} || exists $params{'lastarray'} |
1344
|
0 |
0 |
0 |
$@ or not -w $self->statefilesdir |
1388
|
0 |
0 |
0 |
$value < 0 || $value > 100 |