Branch Coverage

blib/lib/Data/Sah/Tiny.pm
Criterion Covered Total %
branch 48 52 92.3


line true false branch
23 2 21 $opts->{'schema_is_normalized'} ? :
34 1 21 if (exists $clset->{'default'})
41 4 18 if (delete $clset->{'req'}) { }
1 17 elsif (delete $clset->{'forbidden'}) { }
51 13 9 if ($type eq 'int') { }
2 7 elsif ($type eq 'str') { }
6 1 elsif ($type eq 'array') { }
53 1 12 if (defined(my $val = delete $clset->{'min'}))
54 1 12 if (defined(my $val = delete $clset->{'max'}))
57 1 1 if (defined(my $val = delete $clset->{'min_len'}))
58 1 1 if (defined(my $val = delete $clset->{'max_len'}))
61 1 5 if (defined(my $val = delete $clset->{'min_len'}))
62 1 5 if (defined(my $val = delete $clset->{'max_len'}))
63 3 3 if (defined(my $val = delete $clset->{'of'}))
71 1 20 if (keys %$clset)
81 1 19 $default_expr ? :
16 4 $success_if_undef_expr ? :
16 4 $success_if_undef_expr ? :
1 19 $default_expr ? :
86 0 20 if ($opts->{'hash'}) { }
107 0 21 unless $opts->{'return_type'} =~ /\A(bool_valid\+val|bool_valid)\z/
110 1 20 if keys %$opts0
115 0 17 if $opts->{'hash'}
120 2 15 $opts->{'return_type'} eq 'bool_valid+val' ? :
123 1 16 if $opts->{'source'}
126 0 16 if $@