Branch Coverage

blib/lib/Mite/Config.pm.mite.pm
Criterion Covered Total %
branch 41 148 27.7


line true false branch
63 0 106 *{$_;}{'CODE'} ? :
67 0 106 *{$_;}{'CODE'} ? :
77 0 110 ref $_[0] ? :
83 0 110 @_ == 1 ? :
0 110 $meta->{'HAS_BUILDARGS'} ? :
91 0 110 exists $args->{'mite_dir_name'} ? :
93 0 110 unless do {
96 110 0 if (defined $value)
97 0 110 unless ref \$value eq "SCALAR"
108 0 110 if (exists $args->{'mite_dir'})
116 0 0 if &Scalar::Util::blessed($to_coerce)
124 0 0 if (defined $to_coerce)
125 0 0 unless ref \$to_coerce eq "SCALAR"
142 0 0 if overload::Overloaded(ref $_[0] || $_[0])
147 0 0 unless defined $to_coerce and not ref $to_coerce
154 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
0 0 do {
158 0 0 unless &blessed($coerced_value) and $coerced_value->isa("Path::Tiny")
167 0 110 if (exists $args->{'config_file'})
175 0 0 if &Scalar::Util::blessed($to_coerce)
183 0 0 if (defined $to_coerce)
184 0 0 unless ref \$to_coerce eq "SCALAR"
201 0 0 if overload::Overloaded(ref $_[0] || $_[0])
206 0 0 unless defined $to_coerce and not ref $to_coerce
213 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
0 0 do {
217 0 0 unless &blessed($coerced_value) and $coerced_value->isa("Path::Tiny")
226 1 109 if (exists $args->{'data'})
227 0 1 unless do {
238 1 109 exists $args->{'search_for_mite_dir'} ? :
241 0 110 unless not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
253 0 110 unless $meta->{'BUILD'}
0 110 if not $no_build and @{[] unless $meta->{'BUILD'};}
260 0 110 if @unknown
270 0 0 unless $meta->{'BUILD'}
278 7 0 defined ${^GLOBAL_PHASE} ? :
282 0 7 unless $meta->{'DEMOLISH'}
289 0 0 if $e
300 0 881 unless @_ == 1
303 11 870 exists $_[0]{'config_file'} ? :
312 18 0 if &Scalar::Util::blessed($to_coerce)
320 0 0 if (defined $to_coerce)
321 0 0 unless ref \$to_coerce eq "SCALAR"
338 0 0 if overload::Overloaded(ref $_[0] || $_[0])
345 0 0 unless defined $to_coerce and not ref $to_coerce
352 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
18 0 do {
356 0 18 unless &blessed($default_value) and $default_value->isa("Path::Tiny")
370 0 0 unless ref $_[1] eq "HASH"
376 0 938 @_ > 1 ? :
379 77 861 exists $_[0]{'data'} ? :
382 0 9 unless ref $default_value eq "HASH"
396 0 879 unless @_ == 1
399 8 871 exists $_[0]{'mite_dir'} ? :
408 18 0 if &Scalar::Util::blessed($to_coerce)
416 0 0 if (defined $to_coerce)
417 0 0 unless ref \$to_coerce eq "SCALAR"
434 0 0 if overload::Overloaded(ref $_[0] || $_[0])
441 0 0 unless defined $to_coerce and not ref $to_coerce
448 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
18 0 do {
452 0 18 unless &blessed($default_value) and $default_value->isa("Path::Tiny")
483 0 13 unless not ref $_[1] and !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
494 15 3412 @_ > 1 ? :
501 0 0 if exists $DOES{$role}
502 0 0 if $role eq "Mite::Config"