Branch Coverage

blib/lib/Result/Simple.pm
Criterion Covered Total %
branch 78 86 90.7


line true false branch
36 1 49 unless wantarray
37 1 48 if @_ > 1
38 1 47 if @_ == 0
46 1 27 unless wantarray
47 1 26 if @_ > 1
48 1 25 if @_ == 0
49 3 22 unless $_[0]
83 1 12 unless ($code)
87 1 11 unless (builtin::blessed($T) and $T->can("check"))
91 9 2 if (defined $E)
92 1 8 unless (builtin::blessed($E) and $E->can("check"))
96 1 7 if (my(@f) = grep({$E->check($_);} @{[0,0,"",undef];}))
109 1 8 unless wantarray
112 2 5 unless (@result == 2)
118 2 3 if ($err) { }
119 1 1 if (defined $E) { }
120 1 0 if (not $E->check($err) or defined $data)
128 1 2 if (not $T->check($data) or defined $err)
140 1 8 if (defined $prototype)
154 1 6 unless wantarray
155 1 5 unless @_ == 3
158 0 5 ref $function ? :
160 1 4 unless $caller->can($function)
162 1 3 if $error
172 0 5 if (ref $f) { }
174 1 4 unless $caller->can($f)
182 1 5 unless wantarray
183 1 4 unless @_ == 2
186 0 4 if $error
189 2 4 if $error
206 1 3 unless wantarray
207 1 2 unless @_ % 2 == 0
213 1 4 if ($error)
226 0 2 unless wantarray
227 0 2 unless @_ % 2 == 0
234 2 5 if ($err) { }
240 1 1 if @errors
246 6 0 if (ref $_ and ref $_ eq 'ARRAY') { }
254 0 2 unless _is_callable($on_success) and _is_callable($on_failure)
261 1 3 unless @_ == 2
264 1 2 if ($err) { }
282 1 1 if ($err)
292 1 1 unless ($err)