blib/lib/Validation/Class/Directive/Toggle.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
branch | 12 | 18 | 66.6 |
line | true | false | branch |
---|---|---|---|
23 | 32 | 0 | if (defined $field->{'toggle'}) |
30 | 12 | 20 | $field->{'required'} == 0 ? : |
32 | 0 | defined $field->{'required'} ? : | |
32 | 31 | 1 | if $field->{'toggle'} =~ /^(\+|1)$/ |
33 | 1 | 31 | if $field->{'toggle'} =~ /^(\-|0)$/ |
45 | 32 | 0 | if (defined $field->{'toggle'}) |
49 | 32 | 0 | if (defined $$stash{$field->{'name'}}{'required'}) |
61 | 32 | 0 | if exists $field->{'toggle'} |
73 | 0 | 1002 | if exists $field->{'toggle'} |