Condition Coverage

blib/lib/Template/Provider/DBI.pm
Criterion Covered Total %
condition 10 34 29.4


and 3 conditions

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 1 0 0 $modified and exists $$self{'DBI_DT'}
138 0 0 0 $$self{'DBI_DT'} and $$self{'DBI_DT'}->can('parse_timestamp')
0 0 0 $$self{'DBI_DT'} and $$self{'DBI_DT'}->can('format_datetime')

or 2 conditions

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'

or 3 conditions

line l !l&&r !l&&!r condition
36 0 0 1 $$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 0 0 0 $self->convert_timestamp($result) || $result