Branch Coverage

blib/lib/CLI/Osprey/Descriptive/Usage.pm
Criterion Covered Total %
branch 19 52 36.5


line true false branch
57 0 0 if $width <= 0
64 0 0 if (length($line) + length($space) + length($nonspace) <= $width) { }
74 0 0 if length $line
81 0 0 if length $_ > $max
89 0 0 if ($self->has_target and my(%subcommands) = $self->target->_osprey_subcommands)
90 0 0 if ($length eq 'long') { }
99 0 0 if (defined $desc) { }
138 1 3 if ($opt->{'desc'} eq 'spacer')
146 3 0 if ($self->has_target)
149 0 3 if defined $option_attrs->{'option'}
155 0 3 if (defined $format and $format =~ s/[\@\+]$//)
160 0 3 if (defined $format)
161 0 0 if (defined $option_attrs->{'format_doc'}) { }
173 0 3 if ($short)
177 2 1 if (length $name > 1) { }
186 0 3 if (defined $format_doc)
193 0 3 if ($array)
198 3 0 if (defined $option_attrs and not $option_attrs->{'required'})
209 0 3 defined $option_attrs->{'long_doc'} ? :
250 0 0 if ($desc->{'spacer'}) { }
274 0 1 $osprey_config{'desc'} ? :
280 1 0 if ($osprey_config{'description_pod'})
285 1 0 if ($osprey_config{'extra_pod'})
293 1 3 if ($desc->{'spacer'}) { }
305 0 1 if ($self->has_target and my(%subcommands) = $self->target->_osprey_subcommands)
312 0 0 if ($desc)