Branch Coverage

blib/lib/Function/Return.pm
Criterion Covered Total %
branch 60 114 52.6


line true false branch
24 1 19 $args{'pkg'} ? :
25 3 17 if exists $args{'no_check'}
58 9 27 exists $NO_CHECK{$pkg} ? :
60 9 27 if ($no_check) { }
97 1 86 unless $type->can($_)
104 13 28 if @$types > 1
110 11 30 if @$types == 0
113 30 11 if @$types > 0
124 13 28 if @$types > 1
125 17 24 if @$types == 1
128 2 1 unless @ret
1 3 defined $_ ? :
1 0 if @ret > 0
0 3 defined $_ ? :
3 1 if @ret < 1
0 0 defined $_ ? :
1 3 if @ret > 1
0 0 unless $types->[0]->check($ret[0])
0 4 unless @ret
2 2 defined $_ ? :
1 0 if @ret > 0
0 0 defined $_ ? :
0 1 if @ret < 1
0 0 defined $_ ? :
0 1 if @ret > 1
0 1 unless $types->[0]->check($ret[0])
0 0 defined $_ ? :
0 1 if @ret < 1
0 0 defined $_ ? :
0 1 if @ret > 1
1 0 unless $types->[0]->check($ret[0])
0 0 unless @ret
0 0 defined $_ ? :
0 0 if @ret > 0
2 1 unless wantarray
0 0 defined $_ ? :
0 1 if @ret < 2
0 0 defined $_ ? :
0 1 if @ret > 2
0 1 unless $types->[0]->check($ret[0])
0 1 unless $types->[1]->check($ret[1])
2 1 unless wantarray
1 0 defined $_ ? :
1 0 if @ret < 2
0 0 defined $_ ? :
0 0 if @ret > 2
0 0 unless $types->[0]->check($ret[0])
0 0 unless $types->[1]->check($ret[1])
2 1 unless wantarray
0 0 defined $_ ? :
0 1 if @ret < 2
2 1 defined $_ ? :
1 0 if @ret > 2
0 0 unless $types->[0]->check($ret[0])
0 0 unless $types->[1]->check($ret[1])
143 2 7 if (my $materials = Sub::Meta::Finder::FunctionParameters::find_materials($sub))
161 4 23 if (my $materials = Sub::Meta::Finder::FunctionParameters::find_materials($sub))