blib/lib/Template/Provider/DBI.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 13 | 34 | 38.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
18 | 0 | 1 | 0 | $self->{'DBI_DBH'} and $self->{'DBI_DSN'} |
65 | 1 | 0 | 0 | defined $self->{'SIZE'} and $self->{'LOOKUP'}{$name} |
90 | 0 | 0 | 1 | $modified and exists $self->{'DBI_DT'} |
138 | 0 | 2 | 0 | $self->{'DBI_DT'} and $self->{'DBI_DT'}->can('parse_timestamp') |
0 | 0 | 2 | $self->{'DBI_DT'} and $self->{'DBI_DT'}->can('format_datetime') |
line | l | !l | condition |
---|---|---|---|
28 | 0 | 1 | $self->{'DBI_TABLE'} ||= 'templates' |
29 | 0 | 1 | $self->{'DBI_MODIFIEDFIELD'} ||= 'modified' |
30 | 0 | 1 | $self->{'DBI_TMPLFIELD'} ||= 'template' |
31 | 0 | 1 | $self->{'DBI_FILEFIELD'} ||= 'filename' |
32 | 0 | 1 | $self->{'DBI_CURRENTTIME'} ||= 'current_timestamp' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
36 | 0 | 1 | 0 | $self->{'DBI_DT'} ||= 'DateTime::Format::DBI'->new($self->{'DBI_DBH'}) |
46 | 0 | 1 | 0 | $self->{'DBI_QUERY'} ||= "SELECT $self->{'DBI_TMPLFIELD'} $modified FROM $self->{'DBI_TABLE'} WHERE $self->{'DBI_FILEFIELD'} = ?" |
129 | 1 | 0 | 0 | $self->convert_timestamp($result) || $result |