line |
true |
false |
branch |
16
|
3 |
79 |
if (my $meth = $self->get_method('build_id')) { }
|
|
0 |
79 |
elsif ($self->form and $self->form->can('build_field_id')) { }
|
27
|
0 |
80 |
$self->form && $self->form->field_prefix ? :
|
45
|
0 |
443 |
if $accessor =~ /\./
|
62
|
0 |
0 |
(shift())->active ? :
|
65
|
12 |
4957 |
if $self->_has_active
|
82
|
2 |
523 |
unless defined $value
|
83
|
41 |
482 |
ref $value eq 'ARRAY' ? :
|
85
|
83 |
478 |
if ref $_ or not defined $_
|
89
|
41 |
482 |
ref $value eq 'ARRAY' ? :
|
125
|
593 |
48 |
if ($self->form) { }
|
143
|
593 |
48 |
if ($self->form)
|
146
|
1 |
1185 |
if exists $self->methods->{$prefix}
|
148
|
19 |
1166 |
if (my $meth = $self->form->can($meth_name))
|
162
|
0 |
427 |
unless $self->is_active
|
163
|
0 |
427 |
if $self->password
|
164
|
219 |
208 |
if $self->has_input
|
165
|
122 |
86 |
if ($self->has_value)
|
167
|
5 |
117 |
if $self->has_transform_value_to_fif
|
180
|
2018 |
15 |
if ($field->parent)
|
183
|
1483 |
550 |
unless defined $parent_name and length $parent_name
|
191
|
0 |
0 |
if ($field->is_contains)
|
192
|
0 |
0 |
unless $parent
|
197
|
0 |
0 |
if ($parent)
|
200
|
0 |
0 |
unless defined $parent_accessor and length $parent_accessor
|
232
|
1 |
100 |
if (my $meth = $self->get_method('build_label'))
|
271
|
7 |
80 |
if $self->has_html5_input_type
|
307
|
0 |
9 |
defined $do_errors ? :
|
321
|
1 |
0 |
if $self->form
|
334
|
72 |
37 |
if (not $message[0] =~ /{/) { }
|
366
|
65 |
45 |
if ($self->parent)
|
391
|
1 |
0 |
if not $_[0]->has_errors
|
396
|
0 |
585 |
unless $self->has_input
|
403
|
4 |
678 |
unless defined $x
|
404
|
584 |
94 |
unless ref $x
|
405
|
24 |
70 |
if (ref $x eq 'ARRAY')
|
407
|
21 |
4 |
if has_some_value($elem)
|
411
|
70 |
0 |
if (ref $x eq 'HASH')
|
413
|
63 |
9 |
if has_some_value($x->{$key})
|
417
|
0 |
0 |
if &blessed($x)
|
418
|
0 |
0 |
if ref $x
|
430
|
0 |
87 |
if $self->has_fields and $self->skip_fields_without_input and not $self->has_input
|
435
|
24 |
586 |
if ($self->required || $self->has_required_when && $self->match_when($self->required_when) and not $self->has_input && $self->input_defined) { }
|
|
28 |
558 |
elsif ($self->is_repeatable) { }
|
|
39 |
519 |
elsif (not $self->has_input) { }
|
|
19 |
500 |
elsif (not $self->input_defined) { }
|
439
|
16 |
8 |
if ($self->has_input)
|
440
|
0 |
16 |
$self->not_nullable ? :
|
450
|
3 |
16 |
if ($self->not_nullable) { }
|
|
2 |
14 |
elsif ($self->no_value_if_empty or $self->is_contains) { }
|
453
|
3 |
0 |
unless $self->is_compound
|
463
|
82 |
0 |
unless $continue_validation or $self->validate_when_empty
|
466
|
75 |
453 |
if ($self->has_fields) { }
|
471
|
8 |
445 |
if $self->has_transform_input_to_value
|
475
|
527 |
1 |
if $self->trim
|
482
|
19 |
509 |
if (my $meth = $self->get_method('validate'))
|
486
|
6 |
522 |
if ($self->has_transform_value_after_validate)
|
497
|
4 |
412 |
if $self->has_transform_param_to_input
|
513
|
46 |
183 |
unless my $class = &blessed(shift())
|
525
|
88 |
46 |
if (not ref $action or &$is_type($action))
|
528
|
6 |
128 |
if (my $when = $action->{'when'})
|
529
|
3 |
3 |
unless $self->match_when($when)
|
531
|
95 |
36 |
if (exists $action->{'type'}) { }
|
|
11 |
25 |
elsif (ref $action->{'check'} eq 'CODE') { }
|
|
6 |
19 |
elsif (ref $action->{'check'} eq 'Regexp') { }
|
|
5 |
14 |
elsif (ref $action->{'check'} eq 'ARRAY') { }
|
|
14 |
0 |
elsif (ref $action->{'transform'} eq 'CODE') { }
|
533
|
95 |
0 |
if (&$is_type($action->{'type'})) { }
|
538
|
0 |
0 |
unless $tobj = Moose::Util::TypeConstraints::find_type_constraint($type)
|
541
|
14 |
81 |
if ($tobj->has_coercion and $tobj->validate($value))
|
543
|
0 |
14 |
if ($@) { }
|
544
|
0 |
0 |
if ($tobj->has_message) { }
|
561
|
3 |
8 |
unless ($action->{'check'}->($value, $self))
|
566
|
5 |
1 |
unless ($value =~ /$action->{'check'}/)
|
571
|
4 |
1 |
unless (grep {$value eq $_;} @{$$action{'check'};})
|
580
|
0 |
14 |
if ($@) { }
|
587
|
50 |
81 |
if (defined $error_message)
|
588
|
9 |
41 |
ref $error_message eq 'ARRAY' ? :
|
589
|
13 |
37 |
if (defined $action->{'message'})
|
591
|
3 |
10 |
if (ref $act_msg eq 'CODE')
|
594
|
3 |
10 |
if (ref $act_msg eq 'ARRAY') { }
|
|
10 |
0 |
elsif (ref \$act_msg eq 'SCALAR') { }
|
614
|
4 |
8 |
$from_form ? :
|
615
|
0 |
12 |
unless ($field)
|
619
|
12 |
0 |
defined $field->fif ? :
|
620
|
4 |
8 |
if (ref $check_against eq 'CODE') { }
|
|
2 |
6 |
elsif (ref $check_against eq 'ARRAY') { }
|
|
3 |
3 |
elsif ($check_against eq $field_fif) { }
|
621
|
2 |
2 |
if &$check_against($field_fif, $self)
|
626
|
1 |
5 |
if $value eq $field_fif
|
648
|
341 |
69 |
if ($exists) { }
|
|
1 |
68 |
elsif ($self->disabled) { }
|
|
20 |
48 |
elsif ($self->has_input_without_param) { }
|
665
|
210 |
0 |
if ($self->form) { }
|
672
|
0 |
210 |
if $self->writeonly
|
680
|
36 |
562 |
if (my(@values) = $self->get_default_value)
|
681
|
2 |
34 |
if ($self->has_transform_default_to_value)
|
684
|
0 |
36 |
@values > 1 ? :
|
685
|
36 |
0 |
if (defined $value)
|
705
|
10 |
716 |
if (my $meth = $self->get_method('default')) { }
|
|
37 |
679 |
elsif (defined $self->default) { }
|
748
|
4 |
62 |
if $self->_has_field_message($msg)
|
751
|
1 |
61 |
if $self->has_form and $self->form->_has_form_message($msg)
|
758
|
0 |
0 |
$self->has_form ? :
|
779
|
0 |
2 |
if $self->has_errors
|