line |
true |
false |
branch |
21
|
202 |
733 |
if $field->can('options') or $field->has_errors
|
25
|
0 |
733 |
unless defined $value
|
30
|
31 |
702 |
if (defined $low and defined $high)
|
32
|
27 |
4 |
$value >= $low && $value <= $high ? :
|
36
|
2 |
700 |
if (defined $low)
|
38
|
1 |
1 |
$value >= $low ? :
|
42
|
0 |
700 |
if (defined $high)
|
44
|
0 |
0 |
$value <= $high ? :
|
54
|
0 |
1072 |
unless $field->has_result
|
59
|
12 |
75 |
if (not $field->has_input and $field->form and $field->form->use_fields_for_input_without_param)
|
64
|
32 |
1040 |
if ($field->required || $field->has_required_when && $field->match_when($field->required_when) and not $field->has_input && $field->input_defined) { }
|
|
41 |
999 |
elsif ($field->DOES('HTML::FormHandler::Field::Repeatable')) { }
|
|
57 |
942 |
elsif (not $field->has_input) { }
|
|
49 |
893 |
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
|
137 |
0 |
unless $continue_validation or $field->validate_when_empty
|
95
|
132 |
803 |
if ($field->DOES('HTML::FormHandler::Fields')) { }
|
100
|
11 |
792 |
if $field->has_inflate_method
|
108
|
935 |
0 |
if $field->has_value and defined $field->value
|
112
|
5 |
930 |
if ($field->has_deflate_value_method and not $field->has_errors)
|
141
|
4932 |
0 |
if ($meta->can('calculate_all_roles'))
|
143
|
0 |
9553 |
if ($role->can('apply_list') and $role->has_apply_list)
|
151
|
61 |
4871 |
if ($meta->can('apply_list') and $meta->has_apply_list)
|
172
|
1214 |
109 |
unless my $class = &blessed(shift())
|
176
|
0 |
935 |
unless $self->actions
|
182
|
28 |
1202 |
if (not ref $action or &$is_type($action))
|
185
|
6 |
1224 |
if (my $when = $action->{'when'})
|
186
|
3 |
3 |
unless $self->match_when($when)
|
188
|
101 |
1126 |
if (exists $action->{'type'}) { }
|
|
81 |
1045 |
elsif (ref $action->{'check'} eq 'CODE') { }
|
|
6 |
1039 |
elsif (ref $action->{'check'} eq 'Regexp') { }
|
|
17 |
1022 |
elsif (ref $action->{'check'} eq 'ARRAY') { }
|
|
1022 |
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 |
1021 |
if ($@) { }
|
244
|
79 |
1148 |
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
|