Branch Coverage

blib/lib/CLI/Driver/Option.pm
Criterion Covered Total %
branch 28 62 45.1


line true false branch
64 70 0 @_ ? :
70 49 21 if (defined $val)
77 36 0 @_ ? :
79 20 16 if ($self->required)
86 70 0 @_ ? :
88 4 66 if ($self->flag)
95 0 0 @_ ? :
97 0 0 unless ($self->required)
104 9 0 @_ ? :
106 5 4 if ($self->hard)
113 16 0 @_ ? :
115 2 14 unless ($self->hard)
122 0 0 @_ ? :
0 0 if @_ != 1
0 0 $#_ >= 0 ? :
0 0 Type::Tiny::XS::Str($dash_opt) ? :
0 0 if ($#_ >= 0)
124 0 0 if ($self->is_flag)
131 0 0 if $self->is_soft
132 0 0 if $self->is_array
137 70 0 @_ ? :
142 4 66 if ($self->is_flag) { }
147 0 4 if ($self->use_argv_map) { }
154 4 0 if ($success)
155 2 2 $val ? :
163 4 62 if ($self->use_argv_map) { }
164 4 0 if ($ARGV{$self->method_arg})
173 18 44 if $self->is_array
177 62 0 if ($success)
181 0 0 unless $success
185 0 0 if ($self->is_hard and $self->required)