Branch Coverage

blib/lib/Class/XSReader.pm
Criterion Covered Total %
branch 22 46 47.8


line true false branch
12 1 0 if (eval { do { require Types::Standard; 1 } }) { }
33 0 3 if ("SCALAR" eq ref $_[0])
40 3 0 ref $_[0] ? :
44 0 3 if (is_ArrayRef($thing)) { }
3 0 elsif (is_HashRef($thing)) { }
0 0 elsif (is_CodeRef($thing)) { }
57 0 3 if ($slot =~ /\A(.*)\!\z/)
62 3 0 unless exists $spec{'lazy'}
64 3 0 if (is_Object($spec{'isa'}) and $spec{'isa'}->can('compiled_check')) { }
0 0 elsif (is_Object($spec{'isa'}) and $spec{'isa'}->can('check')) { }
75 0 0 if (defined $spec{'coerce'} and not ref $spec{'coerce'} and $spec{'coerce'} eq 1)
77 0 0 if ($type->can('has_coercion') and $type->has_coercion and $type->can('coercion') and is_Object($c = $type->coercion) and $c->can('compiled_coercion')) { }
0 0 elsif ($type->can('coerce')) { }
91 0 3 if (@unknown_keys)
95 2 1 exists $spec{'default'} || defined $spec{'builder'} ? :
108 3 0 exists $spec{'reader'} ? :
2 1 $has_default ? :
2 1 $has_default ? :
3 0 $has_type ? :
3 0 $has_type ? :
3 0 $has_type ? :
1 2 $clone ? :
111 0 3 if (our $REDEFINE) { }