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 120 ref $_[0] ? :
85 0 120 @_ == 1 ? :
0 120 $meta->{'HAS_BUILDARGS'} ? :
90 0 120 unless exists $args->{'file'}
98 120 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 {
120 0 do {
138 0 120 unless &blessed($coerced_value) and $coerced_value->isa("Path::Tiny")
149 0 120 exists $args->{'classes'} ? :
151 0 120 unless do {
154 120 0 if (ref $value eq "HASH")
159 0 0 unless do {
161 0 0 if &Scalar::Util::blessed($i)
179 0 120 exists $args->{'class_order'} ? :
181 0 120 unless do {
184 120 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 120 if (exists $args->{'compiled'})
215 0 0 unless &blessed($args->{'compiled'}) and $args->{'compiled'}->isa("Mite::Compiled")
223 120 0 if (exists $args->{'project'})
225 0 120 unless &blessed($args->{'project'}) and $args->{'project'}->isa("Mite::Project")
231 120 0 if ref $self->{'project'}
234 0 120 unless $meta->{'BUILD'}
0 120 if not $no_build and @{[] unless $meta->{'BUILD'};}
241 0 120 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 1320 @_ > 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)