Branch Coverage

blib/lib/Syccess/Validator/Length.pm
Criterion Covered Total %
branch 30 34 88.2


line true false branch
24 0 1 if $self->has_arg and $self->has_min || $self->has_max
34 1 3 if ($self->has_arg) { }
37 1 2 if ($self->has_min and $self->has_max) { }
1 1 elsif ($self->has_min) { }
1 0 elsif ($self->has_max) { }
54 1 3 if ($self->has_arg) { }
57 1 2 if ($self->has_min and $self->has_max) { }
1 1 elsif ($self->has_min) { }
1 0 elsif ($self->has_max) { }
71 3 7 if ($self->has_arg) { }
72 2 1 if $length != $self->arg
74 2 5 if ($self->has_min and $self->has_max) { }
3 2 elsif ($self->has_min) { }
2 0 elsif ($self->has_max) { }
75 1 1 if $length < $self->min or $length > $self->max
77 2 1 if $length < $self->min
79 1 1 if $length > $self->max