Branch Coverage

blib/lib/Mite/Compiled.pm.mite.pm
Criterion Covered Total %
branch 22 102 21.5


line true false branch
63 0 82 *{$_;}{'CODE'} ? :
67 0 82 *{$_;}{'CODE'} ? :
77 0 99 ref $_[0] ? :
83 0 99 @_ == 1 ? :
0 99 $meta->{'HAS_BUILDARGS'} ? :
88 0 99 if (exists $args->{'file'})
96 0 0 if &Scalar::Util::blessed($to_coerce)
104 0 0 if (defined $to_coerce)
105 0 0 unless ref \$to_coerce eq "SCALAR"
122 0 0 if overload::Overloaded(ref $_[0] || $_[0])
127 0 0 unless defined $to_coerce and not ref $to_coerce
134 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
0 0 do {
138 0 0 unless &blessed($coerced_value) and $coerced_value->isa("Path::Tiny")
148 0 99 unless exists $args->{'source'}
149 0 99 unless &blessed($args->{'source'}) and $args->{'source'}->isa("Mite::Source")
154 99 0 if ref $self->{'source'}
157 0 99 unless $meta->{'BUILD'}
0 99 if not $no_build and @{[] unless $meta->{'BUILD'};}
162 0 99 if @unknown
172 0 0 unless $meta->{'BUILD'}
180 0 0 defined ${^GLOBAL_PHASE} ? :
184 0 0 unless $meta->{'DEMOLISH'}
191 0 0 if $e
210 0 0 if &Scalar::Util::blessed($to_coerce)
218 0 0 if (defined $to_coerce)
219 0 0 unless ref \$to_coerce eq "SCALAR"
235 0 0 if overload::Overloaded(ref $_[0] || $_[0])
239 0 0 unless defined $to_coerce and not ref $to_coerce
246 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
0 0 do {
250 0 0 unless &blessed($value) and $value->isa("Path::Tiny")
256 0 100 @_ > 1 ? :
259 3 97 exists $_[0]{'file'} ? :
268 0 97 if &Scalar::Util::blessed($to_coerce)
276 97 0 if (defined $to_coerce)
277 0 97 unless ref \$to_coerce eq "SCALAR"
297 0 0 if overload::Overloaded(ref $_[0] || $_[0])
304 0 0 unless defined $to_coerce and not ref $to_coerce
314 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
97 0 do {
0 97 do {
321 0 97 unless &blessed($default_value) and $default_value->isa("Path::Tiny")
350 0 227 unless &blessed($object)
363 0 0 if exists $DOES{$role}
364 0 0 if $role eq "Mite::Compiled"