Branch Coverage

blib/lib/Type/Tiny/XS.pm
Criterion Covered Total %
branch 47 70 67.1


line true false branch
81 23 21 if exists $names{$type}
85 7 14 if ($type =~ /^ArrayRef\[(.+)\]$/) { }
1 13 elsif ($] ge '5.010000' and $type =~ /^ArrayLike\[(.+)\]$/) { }
2 11 elsif ($type =~ /^HashRef\[(.+)\]$/) { }
1 10 elsif ($] ge '5.010000' and $type =~ /^HashLike\[(.+)\]$/) { }
2 8 elsif ($type =~ /^Map\[(.+),(.+)\]$/) { }
4 4 elsif ($type =~ /^(AnyOf|AllOf|Tuple)\[(.+)\]$/) { }
0 4 elsif ($type =~ /^Maybe\[(.+)\]$/) { }
1 3 elsif ($type =~ /^InstanceOf\[(.+)\]$/) { }
0 3 elsif ($type =~ /^HasMethods\[(.+)\]$/) { }
1 2 elsif ($type =~ /^Enum\[".*"\]$/) { }
2 0 elsif ($type =~ /^Enum\[(.+)\]$/) { }
86 0 7 unless my $child = get_coderef_for($1)
91 0 1 unless my $child = get_coderef_for($1)
96 0 2 unless my $child = get_coderef_for($1)
101 0 1 unless my $child = get_coderef_for($1)
107 2 0 if (eval { do { require Type::Parser } }) { }
114 0 2 unless @children == 2
123 4 0 eval { do { require Type::Parser } } ? :
128 4 0 if $maker
132 0 0 unless my $child = get_coderef_for($1)
138 0 1 unless Type::Tiny::XS::Util::is_valid_class_name($class)
150 1 0 if (eval { do { require Type::Parser } })
152 1 0 if ($parsed->{'type'} eq "parameterized")
157 1 5 if ($todo->{'type'} eq 'list') { }
2 3 elsif ($todo->{'type'} eq 'expression' and $todo->{'op'}->type eq Type::Parser::COMMA()) { }
3 0 elsif ($todo->{'type'} eq 'primary' and $todo->{'token'}->type eq 'QUOTELIKE') { }
173 1 0 unless $bad
183 21 0 if ($made)
197 0 0 unless exists $names{$type}
203 0 6 unless $got->{'params'}
210 11 40 if ($e->{'type'} eq "list")
213 5 35 if ($e->{'type'} eq "parameterized")
218 12 23 if ($e->{'type'} eq "expression" and $e->{'op'}->type eq Type::Parser::COMMA())
221 23 0 if ($e->{'type'} eq "primary")