Branch Coverage

blib/lib/CGI/Application/Plugin/GenVal.pm
Criterion Covered Total %
branch 0 118 0.0


line true false branch
31 0 0 unless ($$genval{'params'}{'__ca_obj'})
59 0 0 unless ref $self eq 'CGI::Application::Plugin::GenVal::guts'
65 0 0 if @_ > 1 or ref $_[0] ne 'HASH'
75 0 0 if ($$input{'style'}{'all'}{$$input{'error'}{'type'}}{'style'})
78 0 0 if ($$input{'style'}{$$input{'details'}{'type'}}{$$input{'error'}{'type'}}{'style'})
86 0 0 if ($$input{'details'}{'type'} eq 'text') { }
0 0 elsif ($$input{'details'}{'type'} eq 'password') { }
0 0 elsif ($$input{'details'}{'type'} eq 'select') { }
111 0 0 if ($$input{'details'}{'source'} =~ /^sub self (.*?)$/) { }
0 0 elsif ($$input{'details'}{'source'} =~ /^sub (.*?)$/) { }
113 0 0 if ($@)
120 0 0 if ($@)
137 0 0 if ($$input{'details'}{'type'} eq 'custom')
139 0 0 if ($$input{'details'}{'source'} =~ /^sub self (.*?)$/) { }
0 0 elsif ($$input{'details'}{'source'} =~ /^sub (.*?)$/) { }
141 0 0 if ($@)
148 0 0 if ($@)
160 0 0 unless caller eq 'CGI::Application::Plugin::GenVal::guts'
172 0 0 unless caller eq 'CGI::Application::Plugin::GenVal::guts'
190 0 0 unless ref $self eq 'CGI::Application::Plugin::GenVal::guts'
196 0 0 if @_ > 1 or ref $_[0] ne 'HASH'
201 0 0 unless $$dfv{'prefix'}
202 0 0 unless $$dfv{'any_errors'}
203 0 0 unless $$dfv{'any_errors'}
208 0 0 unless ($$dfv{'schema'})
211 0 0 unless ($$dfv{'form'})
216 0 0 unless (ref $$dfv{'schema'})
218 0 0 if (defined &{"${capackage}::YAML";} and ref $ca->YAML eq 'CGI::Application::Plugin::YAML') { }
253 0 0 if any(@{$$dfv{'required'};}) eq $field
254 0 0 if ($$settings{'required'} and lc $$settings{'required'} ne 'no')
263 0 0 if any(@{$$dfv{'required'};}) eq $field
264 0 0 if (ref $$dfv{'required_hash'}{$field} eq 'HASH') { }
265 0 0 if ($$dfv{'required_hash'}{$field}{'required'}) { }
273 0 0 if ($$dfv{'required_hash'}{$field}) { }
294 0 0 if (ref $$settings{'constraint'} eq 'ARRAY') { }
0 0 elsif (ref $$settings{'constraint'} eq 'HASH') { }
298 0 0 if (ref $constraint eq 'HASH') { }
306 0 0 if ($constraint_js)
315 0 0 if ($constraint_js)
323 0 0 if ($constraint_js)
331 0 0 unless ($ca->GenVal->{'params'}{'__JS_IMPORTED'})
363 0 0 unless caller eq 'CGI::Application::Plugin::GenVal::guts'
370 0 0 if ($constraint =~ /^subref (.*?)$/) { }
0 0 elsif ($constraint =~ /^method (.*?)$/) { }
0 0 elsif ($constraint =~ m[^/.*?/i?$]) { }
0 0 elsif ($constraint =~ m[^/.*?/[sixm]*$]) { }
378 0 0 if ($method =~ /^([a-z0-9_]*)?\(/i) { }
386 0 0 unless ($$dfv{'constraints_loaded'}{$methodname})
388 0 0 if (any(@Data::FormValidator::Constraints::EXPORT_OK) eq $methodname)
397 0 0 if $@
401 0 0 if ($method =~ /^(.*)?\(\s?(.+?)\s?\)$/) { }
405 0 0 if $@
427 0 0 if $@
437 0 0 if $@
446 0 0 unless caller eq 'CGI::Application::Plugin::GenVal::guts'
456 0 0 if ($constraint_js)
462 0 0 if $key eq 'constraint'
464 0 0 if ($$return_js{'constraint'})
468 0 0 unless keys %$return_js