Branch Coverage

blib/lib/Mite/Source.pm.mite.pm
Criterion Covered Total %
branch 27 98 27.5


line true false branch
65 0 89 *{$_;}{'CODE'} ? :
69 0 89 *{$_;}{'CODE'} ? :
79 0 119 ref $_[0] ? :
85 0 119 @_ == 1 ? :
0 119 $meta->{'HAS_BUILDARGS'} ? :
90 0 119 unless exists $args->{'file'}
98 119 0 if &Scalar::Util::blessed($to_coerce)
106 0 0 if (defined $to_coerce)
107 0 0 unless ref \$to_coerce eq "SCALAR"
123 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 {
119 0 do {
138 0 119 unless &blessed($coerced_value) and $coerced_value->isa("Path::Tiny")
149 0 119 exists $args->{'classes'} ? :
151 0 119 unless do {
154 119 0 if (ref $value eq "HASH")
159 0 0 unless do {
161 0 0 if &Scalar::Util::blessed($i)
179 0 119 exists $args->{'class_order'} ? :
181 0 119 unless do {
184 119 0 if (ref $value eq "ARRAY")
190 0 0 unless do {
193 0 0 if (defined $i)
194 0 0 unless ref \$i eq "SCALAR"
213 0 119 if (exists $args->{'compiled'})
215 0 0 unless &blessed($args->{'compiled'}) and $args->{'compiled'}->isa("Mite::Compiled")
223 119 0 if (exists $args->{'project'})
225 0 119 unless &blessed($args->{'project'}) and $args->{'project'}->isa("Mite::Project")
231 119 0 if ref $self->{'project'}
234 0 119 unless $meta->{'BUILD'}
0 119 if not $no_build and @{[] unless $meta->{'BUILD'};}
241 0 119 if @unknown
251 0 0 unless $meta->{'BUILD'}
259 0 0 defined ${^GLOBAL_PHASE} ? :
263 0 0 unless $meta->{'DEMOLISH'}
270 0 0 if $e
312 0 92 unless @_ == 1
315 1 91 exists $_[0]{'compiled'} ? :
318 0 91 unless &blessed($default_value) and $default_value->isa("Mite::Compiled")
348 0 0 unless &blessed($_[1]) and $_[1]->isa("Mite::Project")
353 0 0 if ref $_[0]{'project'}
356 0 1319 @_ > 1 ? :
363 0 0 if exists $DOES{$role}
364 0 0 if $role eq "Mite::Source"
365 0 0 if ($INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta(ref $self || $self))
368 0 0 if $meta->can("does_role") and $meta->does_role($role)