Branch Coverage

lib/Types/Standard/ScalarRef.pm
Criterion Covered Total %
branch 25 32 78.1


line true false branch
30 1 1 exists $values->{'of'} ? :
31 0 2 unless defined $of
32 1 1 unless (Types::TypeTiny::is_TypeTiny($of))
41 0 2 $type->has_coercion ? :
0 2 exists $values->{'where'} ? :
47 1 1 $INC{'Type/Registry.pm'} ? :
2 0 unless ref $caller or $caller eq "-lexical" or $globals->{'lexical'}
52 1 15 unless @_
56 2 13 unless Types::TypeTiny::is_TypeTiny($param)
62 9 10 unless $param->check($$ref)
69 0 13 unless $param->can_be_inlined
82 0 1 if $param->check($item)
97 4 4 unless $param->has_coercion
102 3 1 if ($param->coercion->can_be_inlined and $coercable_item->can_be_inlined) { }
128 2 0 @_ ? :
131 1 1 unless $coercable_item->check($item)