Branch Coverage

blib/lib/Mite/Role.pm.mite.pm
Criterion Covered Total %
branch 46 170 27.0


line true false branch
67 0 12 ref $_[0] ? :
73 0 12 @_ == 1 ? :
0 12 $meta->{'HAS_BUILDARGS'} ? :
78 0 12 unless exists $args->{'name'}
84 12 0 if (defined $args->{'name'})
86 0 12 unless ref \$args->{'name'} eq "SCALAR"
91 0 12 unless do {
103 0 12 if (exists $args->{'shim_name'})
109 0 0 if (defined $args->{'shim_name'})
111 0 0 unless ref \$args->{'shim_name'} eq "SCALAR"
117 0 0 unless do {
130 10 2 if (exists $args->{'source'})
132 0 10 unless &blessed($args->{'source'}) and $args->{'source'}->isa("Mite::Source")
138 10 2 if ref $self->{'source'}
145 0 12 exists $args->{'imported_functions'} ? :
147 0 12 unless do {
150 12 0 if (ref $value eq "HASH")
153 0 0 unless do {
156 0 0 if (defined $v)
157 0 0 unless ref \$v eq "SCALAR"
169 0 0 if (defined $k)
170 0 0 unless ref \$k eq "SCALAR"
176 0 0 unless do {
192 0 12 exists $args->{'imported_keywords'} ? :
194 0 12 unless do {
197 12 0 if (ref $value eq "HASH")
200 0 0 unless do {
203 0 0 if (defined $v)
204 0 0 unless ref \$v eq "SCALAR"
216 0 0 if (defined $k)
217 0 0 unless ref \$k eq "SCALAR"
223 0 0 unless do {
236 0 12 exists $args->{'arg'} ? :
243 2 10 exists $args->{'attributes'} ? :
246 0 12 unless do {
249 12 0 if (ref $value eq "HASH")
254 0 0 unless do {
256 0 0 if &Scalar::Util::blessed($i)
274 2 10 exists $args->{'roles'} ? :
276 0 12 unless do {
279 12 0 if (ref $value eq "ARRAY")
284 0 0 unless do {
286 0 0 if &Scalar::Util::blessed($i)
304 0 12 exists $args->{'role_args'} ? :
306 0 12 unless do {
309 12 0 if (ref $value eq "HASH")
312 0 0 unless do {
315 0 0 unless ref $v eq "HASH"
322 0 0 unless do {
325 0 0 if (defined $k)
326 0 0 unless ref \$k eq "SCALAR"
348 0 12 exists $args->{'method_signatures'} ? :
350 0 12 unless do {
353 12 0 if (ref $value eq "HASH")
358 0 0 unless do {
360 0 0 if &Scalar::Util::blessed($v)
372 0 0 if (defined $k)
373 0 0 unless ref \$k eq "SCALAR"
379 0 0 unless do {
395 2 10 exists $args->{'required_methods'} ? :
397 0 12 unless do {
400 12 0 if (ref $value eq "ARRAY")
409 1 0 if (defined $i)
410 0 1 unless ref \$i eq "SCALAR"
416 0 1 unless do {
428 0 12 unless $meta->{'BUILD'}
12 0 if not $no_build and @{[] unless $meta->{'BUILD'};}
435 0 12 if @unknown
498 0 0 unless do {
501 0 0 if (ref $_[1] eq "HASH")
504 0 0 unless do {
507 0 0 unless ref $v eq "HASH"
514 0 0 unless do {
517 0 0 if (defined $k)
518 0 0 unless ref \$k eq "SCALAR"
535 0 8 @_ > 1 ? :
543 0 0 unless do {
546 0 0 if (ref $_[1] eq "ARRAY")
551 0 0 unless do {
553 0 0 if &Scalar::Util::blessed($i)
566 0 59 @_ > 1 ? :
590 0 0 if exists $DOES{$role}
591 0 0 if $role eq "Mite::Role"
592 0 0 if ($INC{'Moose/Util.pm'} and my $meta = Moose::Util::find_meta(ref $self || $self))
595 0 0 if $meta->can("does_role") and $meta->does_role($role)