Branch Coverage

blib/lib/Class/Type/Enum.pm
Criterion Covered Total %
branch 21 26 80.7


line true false branch
29 1 3 unless $class eq 'Class::Type::Enum'
36 3 0 if (ref $params{'values'} eq 'ARRAY') { }
0 0 elsif (ref $params{'values'} eq 'HASH') { }
79 4 16 unless defined $ord
90 4 2 unless exists $class->ord_to_sym->{$ord}
129 1 2 if eval { do { $value->isa($class) } }
137 1 2 if eval { do { $value->isa($class) } }
145 1 4 if eval { do { $value->isa($class) } }
149 2 5 if $enum
160 0 19 unless defined $ord
182 1 8 if $reversed
184 1 7 if &blessed($other)
187 0 7 unless defined $ord