Branch Coverage

blib/lib/Dancer2/Plugin/DataTransposeValidator.pm
Criterion Covered Total %
branch 26 30 86.6


line true false branch
72 0 1 if exists $plugin->config->{'rules_class'} and exists $plugin->config->{'rules_dir'}
74 1 6 if (exists $plugin->config->{'rules_class'})
83 0 16 unless ref $params eq 'HASH'
85 13 3 if (ref $name eq '') { }
1 2 elsif (ref $name eq 'HASH') { }
1 1 elsif (ref $name eq 'CODE') { }
86 8 5 unless ($plugin->rules->{$name})
87 1 7 if (my $class = $plugin->rules_class) { }
88 1 0 if ($class->can($name)) { }
98 1 6 unless $path->is_file
100 0 6 unless my $eval = do $path
101 1 5 if (ref $eval eq 'CODE') { }
131 3 11 if ($clean) { }
146 2 17 if ($plugin->errors_hash and $plugin->errors_hash eq 'joined') { }
2 15 elsif ($plugin->errors_hash and $plugin->errors_hash eq 'arrayref') { }