blib/lib/Database/DumpTruck.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 55 | 52.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
107 | 2 | 0 | 0 | $obj->NV == 0 and $obj->PV eq '' |
0 | 0 | 2 | $obj->NV == 1 and $obj->PV eq '1' | |
244 | 135 | 133 | 2 | $data and $$types[$_] eq 'json text' |
316 | 7 | 41 | 0 | $@ and not $@ =~ /duplicate column name/ |
389 | 0 | 0 | 13 | $converted_data and $$converted_data[0] |
422 | 2 | 10 | 0 | ref $data eq 'HASH' && $$data{'keys'} |
456 | 0 | 0 | 4 | defined $data and exists $$data[0] |
line | l | !l | condition |
---|---|---|---|
175 | 3 | 0 | shift() || {} |
177 | 3 | 0 | $$self{'dbname'} ||= 'dumptruck.db' |
178 | 0 | 3 | $$self{'table'} ||= 'dumptruck' |
179 | 0 | 3 | $$self{'vars_table'} ||= '_dumptruckvars' |
180 | 0 | 3 | $$self{'vars_table_tmp'} ||= '_dumptruckvarstmp' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
94 | 5 | 2 | 0 | $ref eq 'ARRAY' or $ref eq 'HASH' |
107 | 0 | 0 | 2 | $obj->NV == 0 and $obj->PV eq '' or $obj->NV == 1 and $obj->PV eq '1' |
202 | 14 | 1 | 0 | shift() || $$self{'table'} |
290 | 1 | 0 | 0 | shift() || $$self{'table'} |
292 | 1 | 0 | 0 | !defined($if_not_exists) || $if_not_exists |
374 | 7 | 7 | 0 | shift() || $$self{'table'} |
525 | 8 | 9 | 0 | shift() || $$self{'table'} |
540 | 12 | 3 | 0 | shift() || $$self{'table'} |