Branch Coverage

blib/lib/Mite/Package.pm.mite.pm
Criterion Covered Total %
branch 20 114 17.5


line true false branch
65 101 103 *{$_;}{'CODE'} ? :
69 0 204 *{$_;}{'CODE'} ? :
79 0 0 ref $_[0] ? :
85 0 0 @_ == 1 ? :
0 0 $meta->{'HAS_BUILDARGS'} ? :
90 0 0 unless exists $args->{'name'}
96 0 0 if (defined $args->{'name'})
98 0 0 unless ref \$args->{'name'} eq "SCALAR"
103 0 0 unless do {
115 0 0 if (exists $args->{'shim_name'})
121 0 0 if (defined $args->{'shim_name'})
123 0 0 unless ref \$args->{'shim_name'} eq "SCALAR"
129 0 0 unless do {
142 0 0 if (exists $args->{'source'})
144 0 0 unless &blessed($args->{'source'}) and $args->{'source'}->isa("Mite::Source")
150 0 0 if ref $self->{'source'}
157 0 0 exists $args->{'imported_functions'} ? :
159 0 0 unless do {
162 0 0 if (ref $value eq "HASH")
165 0 0 unless do {
168 0 0 if (defined $v)
169 0 0 unless ref \$v eq "SCALAR"
181 0 0 if (defined $k)
182 0 0 unless ref \$k eq "SCALAR"
188 0 0 unless do {
204 0 0 exists $args->{'imported_keywords'} ? :
206 0 0 unless do {
209 0 0 if (ref $value eq "HASH")
212 0 0 unless do {
215 0 0 if (defined $v)
216 0 0 unless ref \$v eq "SCALAR"
228 0 0 if (defined $k)
229 0 0 unless ref \$k eq "SCALAR"
235 0 0 unless do {
248 0 0 exists $args->{'arg'} ? :
251 0 0 unless $meta->{'BUILD'}
0 0 if not $no_build and @{[] unless $meta->{'BUILD'};}
258 0 0 if @unknown
268 0 154 unless $meta->{'BUILD'}
276 4 0 defined ${^GLOBAL_PHASE} ? :
280 0 4 unless $meta->{'DEMOLISH'}
287 0 0 if $e
369 117 0 if (defined $_[1])
370 0 117 unless ref \$_[1] eq "SCALAR"
376 0 117 unless do {
387 117 1556 @_ > 1 ? :
390 1550 6 exists $_[0]{'shim_name'} ? :
397 6 0 if (defined $default_value)
398 0 6 unless ref \$default_value eq "SCALAR"
406 0 6 unless do {
429 0 2 unless &blessed($_[1]) and $_[1]->isa("Mite::Source")
434 2 0 if ref $_[0]{'source'}
437 2 1154 @_ > 1 ? :
444 0 0 if exists $DOES{$role}
445 0 0 if $role eq "Mite::Package"
446 0 0 if ($INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta(ref $self || $self))
449 0 0 if $meta->can("does_role") and $meta->does_role($role)