line |
true |
false |
branch |
190
|
1 |
7 |
if defined $$args{'p'} |
230
|
0 |
8 |
if @{$$self{'rows'};} |
237
|
0 |
21 |
unless $type |
238
|
0 |
21 |
unless $ACCEPTABLE_TYPES{$type} |
242
|
0 |
63 |
if ($$column{$key} and ref $$column{$key}) |
248
|
3 |
18 |
if (defined $$column{'p'}) |
250
|
0 |
3 |
if $@ |
254
|
19 |
2 |
if ($$column{'id'}) |
256
|
0 |
19 |
if (grep {$id eq $$_{'id'};} @{$$self{'columns'};}) |
262
|
21 |
0 |
if ($self->pedantic) |
263
|
19 |
2 |
if ($$column{'id'}) |
264
|
0 |
19 |
if (not $$column{'id'} =~ /^[a-zA-Z0-9_]+$/) { } |
|
0 |
19 |
elsif ($JAVASCRIPT_RESERVED{$$column{'id'}}) { } |
296
|
19 |
2 |
if ($$column{'id'}) { } |
330
|
8 |
5 |
if (ref $row eq 'HASH') { } |
|
5 |
0 |
elsif (ref $row eq 'ARRAY') { } |
333
|
0 |
8 |
if (exists $$self{'column_mapping'}{'p'}) { } |
341
|
0 |
8 |
unless $$self{'all_columns_have_ids'} |
348
|
0 |
20 |
unless (exists $$self{'column_mapping'}{$key}) |
381
|
2 |
11 |
unless defined $columns[$$self{'column_count'} - 1] |
387
|
32 |
3 |
if ($_) { } |
390
|
7 |
25 |
if (ref $column eq 'HASH') { } |
392
|
0 |
7 |
if (defined $$column{'f'} and ref $$column{'f'}) |
397
|
1 |
6 |
if (defined $$column{'p'}) |
398
|
0 |
1 |
unless ref $$column{'p'} |
401
|
0 |
1 |
if $@ |
404
|
7 |
0 |
if ($self->pedantic) |
406
|
0 |
14 |
unless $key =~ /^[fvp]$/ |
426
|
6 |
29 |
if (defined $$cell{'f'}) |
431
|
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') { } |
436
|
3 |
0 |
$$cell{'v'} ? : |
441
|
1 |
5 |
unless $$cell{'v'} |
455
|
0 |
12 |
if (ref $$cell{'v'} eq 'ARRAY') { } |
463
|
6 |
6 |
if (not ref $$cell{'v'}) { } |
|
0 |
6 |
elsif ($$cell{'v'}->isa('DateTime')) { } |
|
6 |
0 |
elsif ($$cell{'v'}->isa('Time::Piece')) { } |
476
|
0 |
0 |
if ($dt->millisecond) |
492
|
4 |
8 |
if ($type eq 'date') { } |
|
4 |
4 |
elsif ($type eq 'datetime') { } |
496
|
0 |
4 |
if $has_milliseconds |
500
|
0 |
4 |
if $has_milliseconds |
506
|
4 |
8 |
if ($type eq 'timeofday') { } |
513
|
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') |
534
|
1 |
12 |
if defined $properties |
556
|
0 |
28 |
if defined $arg |
582
|
0 |
65 |
if defined $arg |
613
|
6 |
16 |
if ($params{'pretty'}) |
635
|
3 |
28 |
if ($$_{'properties'}) |
654
|
2 |
20 |
if (defined $$self{'properties'}) |
670
|
13 |
9 |
if ($params{'columns'} and @{$params{'columns'};}) |
678
|
0 |
13 |
unless defined $index |