Condition Coverage

blib/lib/Venus/Cli.pm
Criterion Covered Total %
condition 70 114 61.4


and 3 conditions

line !l l&&!r l&&r condition
77 0 2 0 @values && defined $values[0]
14 0 2 $_prompt and not @values && defined $values[0]
82 14 0 2 defined $_default and !(@values && defined $values[0]) || $values[0] eq ''
0 0 2 defined $_default and !(@values && defined $values[0]) || $values[0] eq '' and exists $data->{'default'}
389 5 0 1 $_range && $_range =~ /:/u
470 2 0 0 $_range && $_range =~ /:/u
573 2 0 0 $_type and $type_map{$_type}
650 5 0 1 $_range && $_range =~ /:/u
671 2 0 0 $_range && $_range =~ /:/u
725 0 1 1 @values && defined $values[0]
14 1 1 $_prompt and not @values && defined $values[0]
730 16 0 0 defined $_default and !(@values && defined $values[0]) || $values[0] eq ''
0 0 0 defined $_default and !(@values && defined $values[0]) || $values[0] eq '' and exists $data->{'default'}
1104 4 0 91 exists $config->{$key} && exists $config->{$key}{$name}
1113 27 0 17 exists $config->{$key} && exists $config->{$key}{$name} && exists $config->{$key}{$name}{$prop}

or 2 conditions

line l !l condition
33 55 22 $self->{'data'} ||= [@ARGV]
74 14 2 $_range // 0
106 5 1 $value // ""
114 4 6 $code ||= 0
432 6 6 $self->store('arg_order') || {}
465 2 0 $self->get('arg', $data->{'arg'}) || {}
502 2 10 $self->store('cmd_order') || {}
546 16 8 $self->str('name') || 'application'
627 2 10 $self->store('opt_order') || {}
750 3 2 $self->store('arg') || {}
757 4 1 $self->store('opt') || {}
801 0 24 $store->{'arg_order'} ||= {}
803 0 24 keys %{$$store{'arg_order'};} || 0
864 6 0 $type_map{$_} || 'boolean'
877 1 9 $store->{'cmd_order'} ||= {}
879 1 9 keys %{$$store{'cmd_order'};} || 0
920 5 40 $store->{'opt_order'} ||= {}
922 5 40 keys %{$$store{'opt_order'};} || 0
989 6 0 $type_map{$_} || 'boolean'
1060 24 13 $self->store('opt_order') || {}
1096 519 74 $self->stash->{'config'} ||= {}
1117 125 94 $config->{$key} ||= {}
1119 116 103 $config->{$key}{$name} ||= {}
1141 5 1 $data->{'type'} || 'boolean'

or 3 conditions

line l !l&&r !l&&!r condition
78 0 2 0 $_label || $_name
82 2 0 0 !(@values && defined $values[0]) || $values[0] eq ''
452 0 0 0 $self->str('author') || ()
691 0 0 0 $self->str('version') || ()
726 0 1 0 $_label || $_name
730 0 0 0 !(@values && defined $values[0]) || $values[0] eq ''
1084 6 0 0 $type_map{$_type} || ()