| line |
true |
false |
branch |
|
193
|
1 |
7 |
if defined $$args{'p'} |
|
233
|
0 |
8 |
if @{$$self{'rows'};} |
|
240
|
0 |
21 |
unless $type |
|
241
|
0 |
21 |
unless $ACCEPTABLE_TYPES{$type} |
|
245
|
0 |
63 |
if ($$column{$key} and ref $$column{$key}) |
|
251
|
3 |
18 |
if (defined $$column{'p'}) |
|
253
|
0 |
3 |
if $@ |
|
257
|
19 |
2 |
if ($$column{'id'}) |
|
259
|
0 |
19 |
if (grep {$id eq $$_{'id'};} @{$$self{'columns'};}) |
|
265
|
21 |
0 |
if ($self->pedantic) |
|
266
|
19 |
2 |
if ($$column{'id'}) |
|
267
|
0 |
19 |
if (not $$column{'id'} =~ /^[a-zA-Z0-9_]+$/) { } |
|
|
0 |
19 |
elsif ($JAVASCRIPT_RESERVED{$$column{'id'}}) { } |
|
299
|
19 |
2 |
if ($$column{'id'}) { } |
|
333
|
8 |
5 |
if (ref $row eq 'HASH') { } |
|
|
5 |
0 |
elsif (ref $row eq 'ARRAY') { } |
|
336
|
0 |
8 |
if (exists $$self{'column_mapping'}{'p'}) { } |
|
344
|
0 |
8 |
unless $$self{'all_columns_have_ids'} |
|
351
|
0 |
20 |
unless (exists $$self{'column_mapping'}{$key}) |
|
384
|
2 |
11 |
unless defined $columns[$$self{'column_count'} - 1] |
|
390
|
32 |
3 |
if ($_) { } |
|
393
|
7 |
25 |
if (ref $column eq 'HASH') { } |
|
395
|
0 |
7 |
if (defined $$column{'f'} and ref $$column{'f'}) |
|
400
|
1 |
6 |
if (defined $$column{'p'}) |
|
401
|
0 |
1 |
unless ref $$column{'p'} |
|
404
|
0 |
1 |
if $@ |
|
407
|
7 |
0 |
if ($self->pedantic) |
|
409
|
0 |
14 |
unless $key =~ /^[fvp]$/ |
|
429
|
6 |
29 |
if (defined $$cell{'f'}) |
|
434
|
10 |
25 |
if (not defined $$cell{'v'}) { } |
|
|
3 |
22 |
elsif ($type eq 'boolean') { } |
|
|
6 |
16 |
elsif ($type eq 'number') { } |
|
|
4 |
12 |
elsif ($type eq 'string') { } |
|
439
|
3 |
0 |
$$cell{'v'} ? : |
|
444
|
1 |
5 |
unless $$cell{'v'} |
|
458
|
0 |
12 |
if (ref $$cell{'v'} eq 'ARRAY') { } |
|
465
|
6 |
6 |
if (not ref $$cell{'v'}) { } |
|
|
0 |
6 |
elsif ($$cell{'v'}->isa('DateTime')) { } |
|
|
6 |
0 |
elsif ($$cell{'v'}->isa('Time::Piece')) { } |
|
490
|
4 |
8 |
if ($type eq 'date') { } |
|
|
4 |
4 |
elsif ($type eq 'datetime') { } |
|
500
|
4 |
8 |
if ($type eq 'timeofday') { } |
|
507
|
0 |
0 |
if ($$self{'with_timezone'} and ref $$cell{'v'} and ref $$cell{'v'} ne 'ARRAY' and $$cell{'v'}->isa('DateTime') and $type eq 'date' || $type eq 'datetime') |
|
528
|
1 |
12 |
if defined $properties |
|
550
|
0 |
28 |
if defined $arg |
|
576
|
0 |
65 |
if defined $arg |
|
607
|
6 |
16 |
if ($params{'pretty'}) |
|
629
|
3 |
28 |
if ($$_{'properties'}) |
|
648
|
2 |
20 |
if (defined $$self{'properties'}) |
|
664
|
13 |
9 |
if ($params{'columns'} and @{$params{'columns'};}) |
|
672
|
0 |
13 |
unless defined $index |