line |
true |
false |
branch |
21
|
203 |
736 |
if $field->can('options') or $field->has_errors
|
25
|
0 |
736 |
unless defined $value
|
30
|
31 |
705 |
if (defined $low and defined $high)
|
32
|
27 |
4 |
$value >= $low && $value <= $high ? :
|
36
|
2 |
703 |
if (defined $low)
|
38
|
1 |
1 |
$value >= $low ? :
|
42
|
0 |
703 |
if (defined $high)
|
44
|
0 |
0 |
$value <= $high ? :
|
54
|
0 |
1077 |
unless $field->has_result
|
59
|
12 |
76 |
if (not $field->has_input and $field->form and $field->form->use_fields_for_input_without_param)
|
64
|
32 |
1045 |
if ($field->required || $field->has_required_when && $field->match_when($field->required_when) and not $field->has_input && $field->input_defined) { }
|
|
41 |
1004 |
elsif ($field->DOES('HTML::FormHandler::Field::Repeatable')) { }
|
|
58 |
946 |
elsif (not $field->has_input) { }
|
|
49 |
897 |
elsif (not $field->input_defined) { }
|
69
|
14 |
18 |
if ($field->has_input)
|
70
|
0 |
14 |
$field->not_nullable ? :
|
79
|
12 |
37 |
if ($field->not_nullable) { }
|
|
3 |
34 |
elsif ($field->no_value_if_empty or $field->has_flag('is_contains')) { }
|
82
|
11 |
1 |
unless $field->has_flag('is_compound')
|
92
|
138 |
0 |
unless $continue_validation or $field->validate_when_empty
|
95
|
132 |
807 |
if ($field->DOES('HTML::FormHandler::Fields')) { }
|
100
|
11 |
796 |
if $field->has_inflate_method
|
108
|
939 |
0 |
if $field->has_value and defined $field->value
|
112
|
5 |
934 |
if ($field->has_deflate_value_method and not $field->has_errors)
|
141
|
4959 |
0 |
if ($meta->can('calculate_all_roles'))
|
143
|
0 |
9601 |
if ($role->can('apply_list') and $role->has_apply_list)
|
151
|
61 |
4898 |
if ($meta->can('apply_list') and $meta->has_apply_list)
|
172
|
1218 |
109 |
unless my $class = &blessed(shift())
|
176
|
0 |
939 |
unless $self->actions
|
182
|
28 |
1206 |
if (not ref $action or &$is_type($action))
|
185
|
6 |
1228 |
if (my $when = $action->{'when'})
|
186
|
3 |
3 |
unless $self->match_when($when)
|
188
|
101 |
1130 |
if (exists $action->{'type'}) { }
|
|
81 |
1049 |
elsif (ref $action->{'check'} eq 'CODE') { }
|
|
6 |
1043 |
elsif (ref $action->{'check'} eq 'Regexp') { }
|
|
17 |
1026 |
elsif (ref $action->{'check'} eq 'ARRAY') { }
|
|
1026 |
0 |
elsif (ref $action->{'transform'} eq 'CODE') { }
|
190
|
89 |
12 |
if (&$is_type($action->{'type'})) { }
|
195
|
0 |
12 |
unless $tobj = Moose::Util::TypeConstraints::find_type_constraint($type)
|
198
|
18 |
83 |
if ($tobj->has_coercion and $tobj->validate($value))
|
200
|
1 |
17 |
if ($@) { }
|
201
|
1 |
0 |
if ($tobj->has_message) { }
|
218
|
13 |
68 |
unless ($action->{'check'}->($value, $self))
|
223
|
5 |
1 |
unless ($value =~ /$action->{'check'}/)
|
228
|
16 |
1 |
unless (grep {$value eq $_;} @{$$action{'check'};})
|
237
|
1 |
1025 |
if ($@) { }
|
244
|
79 |
1152 |
if (defined $error_message)
|
245
|
21 |
58 |
ref $error_message eq 'ARRAY' ? :
|
246
|
40 |
39 |
if (defined $action->{'message'})
|
248
|
17 |
23 |
if (ref $act_msg eq 'CODE')
|
251
|
7 |
33 |
if (ref $act_msg eq 'ARRAY') { }
|
|
33 |
0 |
elsif (ref \$act_msg eq 'SCALAR') { }
|
271
|
4 |
8 |
$from_form ? :
|
272
|
0 |
12 |
unless ($field)
|
276
|
12 |
0 |
defined $field->fif ? :
|
277
|
4 |
8 |
if (ref $check_against eq 'CODE') { }
|
|
2 |
6 |
elsif (ref $check_against eq 'ARRAY') { }
|
|
3 |
3 |
elsif ($check_against eq $field_fif) { }
|
278
|
2 |
2 |
if &$check_against($field_fif, $self)
|
283
|
1 |
5 |
if $value eq $field_fif
|