Branch Coverage

blib/lib/Dancer2/Plugin/DataTransposeValidator.pm
Criterion Covered Total %
branch 20 24 83.3


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->absolute
103 1 5 if (ref $eval eq 'CODE') { }