Branch Coverage

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


line true false branch
26 0 1 if $self->has_arg and $self->has_min || $self->has_max
36 1 3 if ($self->has_arg) { }
39 1 2 if ($self->has_min and $self->has_max) { }
1 1 elsif ($self->has_min) { }
1 0 elsif ($self->has_max) { }
56 1 3 if ($self->has_arg) { }
59 1 2 if ($self->has_min and $self->has_max) { }
1 1 elsif ($self->has_min) { }
1 0 elsif ($self->has_max) { }
73 3 7 if ($self->has_arg) { }
74 2 1 if $length != $self->arg
76 2 5 if ($self->has_min and $self->has_max) { }
3 2 elsif ($self->has_min) { }
2 0 elsif ($self->has_max) { }
77 1 1 if $length < $self->min or $length > $self->max
79 2 1 if $length < $self->min
81 1 1 if $length > $self->max