Branch Coverage

blib/lib/MooX/Options/Descriptive/Usage.pm
Criterion Covered Total %
branch 30 100 30.0


line true false branch
89 0 45 if (defined $self->{'target'} and defined(my $sub_commands_options = $self->{'target'}->_options_sub_commands))
97 45 0 unless @$sub_commands
112 38 0 defined $self->{'target'} ? :
116 38 0 defined $self->{'target'} ? :
124 40 200 if ($opt->{'desc'} eq 'spacer')
132 9 191 if defined $format
134 0 200 if defined $options_data{$opt->{'name'}}{'json'}
140 0 200 defined $short ? :
148 52 length $opt->{'name'} > 1 ? :
9 191 defined $format_doc_str ? :
142 58 142 if $max_spec_length < length $spec
151 200 40 if (length $spec) { }
192 7 0 defined $self->{'target'} ? :
196 7 0 defined $self->{'target'} ? :
201 9 37 if ($opt->{'desc'} eq 'spacer')
209 0 37 if defined $format
211 0 37 if defined $options_data{$opt->{'name'}}{'json'}
215 0 37 defined $short ? :
22 15 length $opt->{'name'} > 1 ? :
0 37 defined $format_doc_str ? :
219 0 37 unless defined $opt_data
227 0 37 defined $opt_data->{'long_doc'} ? :
245 0 0 defined $self->{'target'} ? :
249 0 0 defined $self->{'target'} ? :
252 0 0 unless defined $prog_name
255 0 0 if (defined $self->{'target'} and defined(my $sub_commands_options = $self->{'target'}->_options_sub_commands))
267 0 0 if (defined(my $description = $options_config{'description'}))
277 0 0 if (defined(my $synopsis = $options_config{'synopsis'}))
285 0 0 if ($opt->{'desc'} eq 'spacer')
293 0 0 if defined $format
296 0 0 if defined $options_data{$opt->{'name'}}{'json'}
299 0 0 length $opt->{'name'} > 1 ? :
300 0 0 defined $short ? :
0 0 defined $format_doc_str ? :
308 0 0 unless defined $opt_data
311 0 0 defined $opt_data->{'long_doc'} ? :
315 0 0 if (@$sub_commands)
319 0 0 if ($sub_command->{'command'}->can('_options_config') and defined(my $desc = {$sub_command->{'command'}->_options_config}->{'description'})) { }
342 0 0 if (defined(my $authors = $options_config{'authors'}))
343 0 0 if (not ref $authors and length $authors)
346 0 0 if (@$authors)
365 0 0 defined $self->{'target'} ? :
369 0 0 unless defined $prog_name
373 0 0 if ($opt->{'desc'} eq 'spacer')
379 0 0 if defined $format
381 0 0 if defined $options_data{$opt->{'name'}}{'json'}
386 0 0 length $opt->{'name'} > 1 ? :
0 0 defined $format_doc_str ? :
389 0 0 $_ eq '' ? :
416 0 0 $self ? :