Condition Coverage

blib/lib/CLI/Osprey/Role.pm
Criterion Covered Total %
condition 20 56 35.7


and 3 conditions

line !l l&&!r l&&r condition
22 91 0 0 $attributes{'repeatable'} and not defined $attributes{'format'}
25 91 0 0 $attributes{'repeatable'} and defined $attributes{'format'}
146 5 2 9 defined $option_name and $options->{$option_name}{'format'}
195 22 0 17 @ARGV and $ARGV[0] ne "--"
288 120 0 87 exists $options{$name} and exists $options{$name}{'option'}
306 0 0 0 @messages and builtin::blessed($messages[0])
0 0 0 @messages and builtin::blessed($messages[0]) and $messages[0]->isa("CLI::Osprey::Descriptive::Usage")
329 0 0 0 defined $usage and builtin::blessed($usage)
0 0 0 defined $usage and builtin::blessed($usage) and $usage->isa("CLI::Osprey::Descriptive::Usage")
348 0 0 0 defined $usage and builtin::blessed($usage)
0 0 0 defined $usage and builtin::blessed($usage) and $usage->isa("CLI::Osprey::Descriptive::Usage")

or 2 conditions

line l !l condition
43 0 107 $options->{$a}{'order'} || 9999
0 107 $options->{$b}{'order'} || 9999
137 16 0 $dash || ''
1 15 $negative || ''

or 3 conditions

line l !l&&r !l&&!r condition
19 91 0 0 $attributes{'option'} || $name
43 0 0 107 ($options->{$a}{'order'} || 9999) <=> ($options->{$b}{'order'} || 9999) or $config->{'added_order'} ? $options->{$a}{'added_order'} <=> $options->{$b}{'added_order'} : 0
103 0 0 38 $arg eq "--" or $arg eq "-"
0 22 16 $arg eq "--" or $arg eq "-" or not $arg =~ /^-/
140 11 0 0 $options->{$option_name}{'option'} || $option_name