Branch Coverage

blib/lib/JsonSQL/Param/Field.pm
Criterion Covered Total %
branch 19 22 86.3


line true false branch
21 13 0 if (defined $fieldName and $fieldName =~ /^[a-zA-Z_][a-zA-Z0-9_:]*$/u || $fieldName eq '*') { }
28 1 12 if (defined $fieldAlias and $fieldAlias =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/u)
33 4 9 if (defined $fieldTable and $fieldTable =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/u)
38 4 9 if (defined $fieldSchema and $fieldSchema =~ /^[a-zA-Z_][a-zA-Z0-9_]*$/u)
49 4 9 if (defined $self->{'_fieldTable'})
51 0 4 if (eval { do { $table_rules->is_error } })
58 1 12 if (eval { do { $allowed_field->is_error } }) { }
78 4 8 if (defined $self->{'_fieldSchema'} and defined $self->{'_fieldTable'}) { }
0 8 elsif (defined $self->{'_fieldTable'}) { }
88 3 9 if ($self->{'_fieldName'} eq '*') { }
95 1 11 if (defined $self->{'_fieldAlias'}) { }