Branch Coverage

blib/lib/Pod/Weaver/Section/AutoDoc.pm
Criterion Covered Total %
branch 78 124 62.9


line true false branch
26 0 10 unless @_ > 0
0 10 unless @_ > 1
0 10 unless @_ > 2
35 0 30 unless @_ > 0
23 7 @_ > 1 ? :
0 30 if @_ > 2
46 9 7 if (ref $item eq 'ARRAY') { }
66 0 52 unless @_ > 0
68 20 32 wantarray ? :
79 0 3 unless @_ > 0
0 3 if @_ > 1
84 0 34 unless @_ > 0
0 34 unless ($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures::WithDocumentation'->_make_constraint('Str'))->check($str)
0 34 if @_ > 1
90 0 34 unless @_ > 0
0 34 unless ($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures::WithDocumentation'->_make_constraint('Str'))->check($str)
0 34 if @_ > 1
91 9 25 unless $str =~ /^(?:\s*\n([ \t\r]+)|(\s+))\S/s
98 0 3 unless @_ > 0
0 3 unless ($Method::Signatures::mutc{'cache'}{'Str'} ||= 'Method::Signatures::WithDocumentation'->_make_constraint('Str'))->check($str)
0 3 @_ > 1 ? :
0 3 unless ($Method::Signatures::mutc{'cache'}{'Str|Int'} ||= 'Method::Signatures::WithDocumentation'->_make_constraint('Str|Int'))->check($indent)
0 3 if @_ > 2
99 3 0 if ($indent =~ /^\d+$/s)
105 0 9 unless @_ > 0
0 9 if @_ > 1
107 0 9 if ($constraint =~ /\|/)
113 9 0 if (ref($constraint) =~ /^Moose::Meta::TypeConstraint::(?:Class|Role)$/) { }
0 0 elsif (ref $constraint eq 'Moose::Meta::TypeConstraint::Parameterized') { }
115 0 9 $class ? :
123 0 5 unless @_ > 0
0 5 unless @_ > 1
0 5 unless @_ > 2
126 0 8 if $name =~ /^_/
128 4 4 unless _subdoc_getoftype('type', @subdoc) eq $type
143 1 3 if (defined $parent)
147 4 0 if (defined $purpose)
151 3 1 if (defined $example)
156 3 1 if (@params)
164 9 0 @param_opts ? :
170 0 4 if (keys %params_desc)
176 3 1 if (defined $returns)
181 3 1 if (@throws)
190 3 1 if (defined $since)
194 3 1 if (defined $deprecated)
199 3 1 if (@authors)
204 4 0 if defined $signature
205 3 1 if defined $deprecated
212 0 3 unless @_ > 0
0 3 unless @_ > 1
0 3 unless @_ > 2
237 0 2 unless @_ > 0
0 2 unless @_ > 1
0 2 if @_ > 2
245 0 2 unless try_load_class($module) or require $filename
257 0 2 $module ne $ns ? :
269 2 0 if @methods
270 1 1 if @functions
272 2 0 if (keys %parents)
274 1 1 if (keys %parents > 1) { }
277 1 1 unless @parents
287 0 1 if (@parents)