Branch Coverage

blib/lib/Specio/Constraint/Role/CanType.pm
Criterion Covered Total %
branch 23 24 95.8


line true false branch
49 7 0 unless (defined $generator)
55 7 214 unless defined $value
59 105 109 unless (defined $class)
63 37 68 if (ref $value)
74 7 61 unless length $value
77 5 56 if (ref \$value eq 'GLOB')
82 41 15 if ($value =~ /\A \s* -?[0-9]+(?:\.[0-9]+)? (?:[Ee][\-+]?[0-9]+)? \s* \z/sx)
94 3 12 if $allow_classes
98 12 3 unless (defined $class)
107 2 110 @missing == 1 ? :
121 2 117 if @items == 1
122 73 44 if @items == 2