Branch Coverage

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


line true false branch
64 68 0 @_ ? :
70 49 19 if (defined $val)
77 35 0 @_ ? :
79 20 15 if ($self->required)
86 68 0 @_ ? :
88 4 64 if ($self->flag)
95 0 0 @_ ? :
97 0 0 unless ($self->required)
104 8 0 @_ ? :
106 5 3 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 68 0 @_ ? :
142 4 64 if ($self->is_flag) { }
147 0 4 if ($self->use_argv_map) { }
154 4 0 if ($success)
155 2 2 $val ? :
163 4 60 if ($self->use_argv_map) { }
164 4 0 if ($ARGV{$self->method_arg})
173 17 43 if $self->is_array
177 60 0 if ($success)
181 0 0 unless $success
185 0 0 if ($self->is_hard and $self->required)