Branch Coverage

blib/lib/Mite/Config.pm.mite.pm
Criterion Covered Total %
branch 41 152 26.9


line true false branch
65 0 107 *{$_;}{'CODE'} ? :
69 0 107 *{$_;}{'CODE'} ? :
79 0 111 ref $_[0] ? :
85 0 111 @_ == 1 ? :
0 111 $meta->{'HAS_BUILDARGS'} ? :
93 0 111 exists $args->{'mite_dir_name'} ? :
95 0 111 unless do {
98 111 0 if (defined $value)
99 0 111 unless ref \$value eq "SCALAR"
110 0 111 if (exists $args->{'mite_dir'})
118 0 0 if &Scalar::Util::blessed($to_coerce)
126 0 0 if (defined $to_coerce)
127 0 0 unless ref \$to_coerce eq "SCALAR"
144 0 0 if overload::Overloaded(ref $_[0] || $_[0])
149 0 0 unless defined $to_coerce and not ref $to_coerce
156 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
0 0 do {
160 0 0 unless &blessed($coerced_value) and $coerced_value->isa("Path::Tiny")
169 0 111 if (exists $args->{'config_file'})
177 0 0 if &Scalar::Util::blessed($to_coerce)
185 0 0 if (defined $to_coerce)
186 0 0 unless ref \$to_coerce eq "SCALAR"
203 0 0 if overload::Overloaded(ref $_[0] || $_[0])
208 0 0 unless defined $to_coerce and not ref $to_coerce
215 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
0 0 do {
219 0 0 unless &blessed($coerced_value) and $coerced_value->isa("Path::Tiny")
228 1 110 if (exists $args->{'data'})
229 0 1 unless do {
240 1 110 exists $args->{'search_for_mite_dir'} ? :
243 0 111 unless not ref $value and !defined($value) || $value eq '' || $value eq '0' || $value eq '1'
255 0 111 unless $meta->{'BUILD'}
0 111 if not $no_build and @{[] unless $meta->{'BUILD'};}
262 0 111 if @unknown
272 0 0 unless $meta->{'BUILD'}
280 7 0 defined ${^GLOBAL_PHASE} ? :
284 0 7 unless $meta->{'DEMOLISH'}
291 0 0 if $e
302 0 843 unless @_ == 1
305 11 832 exists $_[0]{'config_file'} ? :
314 18 0 if &Scalar::Util::blessed($to_coerce)
322 0 0 if (defined $to_coerce)
323 0 0 unless ref \$to_coerce eq "SCALAR"
340 0 0 if overload::Overloaded(ref $_[0] || $_[0])
347 0 0 unless defined $to_coerce and not ref $to_coerce
354 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
18 0 do {
358 0 18 unless &blessed($default_value) and $default_value->isa("Path::Tiny")
372 0 0 unless ref $_[1] eq "HASH"
378 0 900 @_ > 1 ? :
381 77 823 exists $_[0]{'data'} ? :
384 0 9 unless ref $default_value eq "HASH"
398 0 841 unless @_ == 1
401 8 833 exists $_[0]{'mite_dir'} ? :
410 18 0 if &Scalar::Util::blessed($to_coerce)
418 0 0 if (defined $to_coerce)
419 0 0 unless ref \$to_coerce eq "SCALAR"
436 0 0 if overload::Overloaded(ref $_[0] || $_[0])
443 0 0 unless defined $to_coerce and not ref $to_coerce
450 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
18 0 do {
454 0 18 unless &blessed($default_value) and $default_value->isa("Path::Tiny")
485 0 13 unless not ref $_[1] and !defined($_[1]) || $_[1] eq '' || $_[1] eq '0' || $_[1] eq '1'
496 15 3260 @_ > 1 ? :
503 0 0 if exists $DOES{$role}
504 0 0 if $role eq "Mite::Config"
505 0 0 if ($INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta(ref $self || $self))
508 0 0 if $meta->can("does_role") and $meta->does_role($role)