Branch Coverage

blib/lib/Mite/Compiled.pm.mite.pm
Criterion Covered Total %
branch 22 106 20.7


line true false branch
65 0 83 *{$_;}{'CODE'} ? :
69 0 83 *{$_;}{'CODE'} ? :
79 0 91 ref $_[0] ? :
85 0 91 @_ == 1 ? :
0 91 $meta->{'HAS_BUILDARGS'} ? :
90 0 91 if (exists $args->{'file'})
98 0 0 if &Scalar::Util::blessed($to_coerce)
106 0 0 if (defined $to_coerce)
107 0 0 unless ref \$to_coerce eq "SCALAR"
124 0 0 if overload::Overloaded(ref $_[0] || $_[0])
129 0 0 unless defined $to_coerce and not ref $to_coerce
136 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
0 0 do {
140 0 0 unless &blessed($coerced_value) and $coerced_value->isa("Path::Tiny")
150 0 91 unless exists $args->{'source'}
151 0 91 unless &blessed($args->{'source'}) and $args->{'source'}->isa("Mite::Source")
156 91 0 if ref $self->{'source'}
159 0 91 unless $meta->{'BUILD'}
0 91 if not $no_build and @{[] unless $meta->{'BUILD'};}
164 0 91 if @unknown
174 0 0 unless $meta->{'BUILD'}
182 0 0 defined ${^GLOBAL_PHASE} ? :
186 0 0 unless $meta->{'DEMOLISH'}
193 0 0 if $e
212 0 0 if &Scalar::Util::blessed($to_coerce)
220 0 0 if (defined $to_coerce)
221 0 0 unless ref \$to_coerce eq "SCALAR"
237 0 0 if overload::Overloaded(ref $_[0] || $_[0])
241 0 0 unless defined $to_coerce and not ref $to_coerce
248 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
0 0 do {
0 0 do {
252 0 0 unless &blessed($value) and $value->isa("Path::Tiny")
258 0 92 @_ > 1 ? :
261 3 89 exists $_[0]{'file'} ? :
270 0 89 if &Scalar::Util::blessed($to_coerce)
278 89 0 if (defined $to_coerce)
279 0 89 unless ref \$to_coerce eq "SCALAR"
299 0 0 if overload::Overloaded(ref $_[0] || $_[0])
306 0 0 unless defined $to_coerce and not ref $to_coerce
316 0 0 ref $to_coerce eq 'ARRAY' ? :
0 0 do {
89 0 do {
0 89 do {
323 0 89 unless &blessed($default_value) and $default_value->isa("Path::Tiny")
352 0 211 unless &blessed($object)
365 0 0 if exists $DOES{$role}
366 0 0 if $role eq "Mite::Compiled"
367 0 0 if ($INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta(ref $self || $self))
370 0 0 if $meta->can("does_role") and $meta->does_role($role)