Branch Coverage

blib/lib/App/Fetchware/Fetchwarefile.pm
Criterion Covered Total %
branch 35 48 72.9


line true false branch
23 1 8 if (not exists $options{'header'} || defined $options{'header'}) { }
33 1 7 unless ($options{'header'} =~ /^use\s+App::FetchwareX?/m)
45 1 0 unless (exists $options{'descriptions'} or defined $options{'descriptions'})
53 1 5 if (ref $options{'descriptions'} ne 'HASH')
77 8 10 if (@_ == 1) { }
79 4 4 if (ref $self->{'config_options_value'}{$_[0]} eq 'ARRAY') { }
94 3 9 if (ref $self->{'config_options_value'}{$config_key} eq 'ARRAY') { }
95 0 3 if (ref $options{$config_key} eq 'ARRAY') { }
103 1 8 if (exists $self->{'config_options_value'}{$config_key} and defined $self->{'config_options_value'}{$config_key} and ref $self->{'config_options_value'}{$config_key} eq '') { }
109 0 1 if (ref $options{$config_key} eq 'ARRAY') { }
130 3 5 if (ref $options{$config_key} eq 'ARRAY') { }
149 8 4 unless exists $self->{'config_options_order'}{$option_name}
167 1 0 unless ($fetchwarefile =~ /(\n)(\n)$/)
168 0 1 if defined $1 and $1 eq "\n"
169 0 1 if defined $2 and $2 eq "\n"
176 0 1 unless (keys %{$$self{'config_options_value'};} == keys %{$$self{'config_options_order'};})
209 4 0 if (defined $self->{'descriptions'}{$option_key}) { }
212 3 1 if (not exists $description_seen{$option_key} && defined $description_seen{$option_key} && $description_seen{$option_key} > 0) { }
278 1 6 if ref $fetchwarefile ne 'SCALAR'
287 5 1 if (defined $description)
294 2 3 unless $description =~ /\n$/
305 0 6 if ($config_file_value =~ /('|")/) { }
308 0 0 if ($config_file_value =~ /[^;]$/) { }
0 0 elsif ($config_file_value =~ /[^\n]$/) { }