Branch Coverage

blib/lib/Monitoring/GLPlugin/Commandline/Getopt.pm
Criterion Covered Total %
branch 19 32 59.3


line true false branch
60 28 28 if (exists $params{$_}) { }
65 14 0 if ref $self->{'_attr'}{$_} eq 'HASH' and exists $self->{'_attr'}{$_}{'default'}
80 5 2 unless grep /BEGIN/, keys %Monitoring::GLPlugin::Commandline::Extraopts::
93 0 0 unless $old_arg->{'spec'} =~ /(\w+).*/ and $argname eq $1
105 0 5 if (not &GetOptions(\%commandline, @params)) { }
111 1 4 if (exists $commandline{'extra-opts'})
117 1 0 if (not $extras->is_valid) { }
124 0 4 if ($commandline{'help'})
125 0 4 if ($commandline{'version'})
126 0 4 if ($commandline{'usage'})
137 118 20 if exists $_->{'required'}
138 0 4 unless (exists $commandline{$_})
152 0 6 if (exists $ENV{'NAGIOS__HOST' . $_->{'env'}})
155 2 4 if (exists $ENV{'NAGIOS__SERVICE' . $_->{'env'}})
163 0 4 if $self->{'opts'}{$field}
211 0 0 if $self->{'_attr'}{'url'}