| line |
true |
false |
branch |
|
56
|
0 |
1 |
if ($opt eq 'components') { } |
|
|
0 |
1 |
elsif ($opt eq 'default_currency') { } |
|
|
0 |
1 |
elsif ($opt eq 'mode') { } |
|
|
0 |
1 |
elsif ($opt eq 'warn_on_unknown_tag') { } |
|
|
0 |
1 |
elsif ($opt eq 'html_fromarrayref_format') { } |
|
69
|
0 |
0 |
if (ref $o eq 'HASH') { } |
|
256
|
0 |
0 |
unless (ref $obj) |
|
269
|
0 |
0 |
if (not defined $snippets->{$name}) { } |
|
|
0 |
0 |
elsif (ref $snippets->{$name} ne 'ARRAY') { } |
|
274
|
0 |
0 |
unless (ref $obj) |
|
311
|
0 |
0 |
if (ref $c eq 'ARRAY' and $collapsearrayrefs) { } |
|
|
0 |
0 |
elsif (defined $c) { } |
|
324
|
0 |
0 |
if ($f =~ m[/]) |
|
330
|
0 |
0 |
if (-e $f) |
|
342
|
0 |
0 |
unless ($f =~ m[^[\./]]) |
|
343
|
0 |
0 |
if (-e $f) { } |
|
345
|
0 |
0 |
unless ($fetch) |
|
346
|
0 |
0 |
if ($@) |
|
349
|
0 |
0 |
if ($!) |
|
353
|
0 |
0 |
if (ref $fetch eq "CODE") |
|
382
|
0 |
0 |
if (not ref $inserto and $inserto =~ /staticfile:(.*)/) { } |
|
|
0 |
0 |
elsif (not ref $inserto and $inserto =~ /file:(.*)/) { } |
|
390
|
0 |
0 |
if (not ref $e->[1]) { } |
|
|
0 |
0 |
elsif (ref $e->[1] eq 'ARRAY') { } |
|
402
|
0 |
0 |
if (not ref $inserto and $inserto =~ /staticfile:(.*)/) { } |
|
|
0 |
0 |
elsif (not ref $inserto and $inserto =~ /file:(.*)/) { } |
|
410
|
0 |
0 |
if (not ref $e->[1]) { } |
|
|
0 |
0 |
elsif (ref $e->[1] eq 'ARRAY') { } |
|
429
|
0 |
0 |
if (ref $attr eq 'ARRAY') { } |
|
|
0 |
0 |
elsif (ref $attr eq 'HASH') { } |
|
434
|
0 |
0 |
if ($attrs{'_'}) |
|
437
|
0 |
0 |
if ($query =~ /\#(.*)/ and $attrs{'id'} eq $1) { } |
|
|
0 |
0 |
elsif ($query =~ /^([^\#\.]\S*)/ and $tag eq $1) { } |
|
451
|
0 |
4 |
unless (ref $o) |
|
455
|
0 |
4 |
if (ref $o eq "HASH") |
|
459
|
0 |
4 |
if (ref $o eq "CODE") |
|
463
|
0 |
0 |
if ($@) |
|
466
|
0 |
4 |
if (ref $o ne "ARRAY") |
|
473
|
0 |
6 |
unless (defined $tag) |
|
476
|
0 |
6 |
if (ref $tag eq "ARRAY") |
|
480
|
0 |
6 |
if (ref $tag eq "CODE") |
|
484
|
0 |
0 |
if ($@) |
|
487
|
0 |
6 |
if ($tag =~ /_(.+)/) |
|
492
|
0 |
6 |
if ($tag =~ /\s/) |
|
498
|
0 |
6 |
if ($html_fromarrayref_format) |
|
501
|
0 |
0 |
if (ref $attr eq "HASH" and ($tags{$tag} & 2) == 0) |
|
507
|
0 |
6 |
if (not ref $attr and $attr =~ /staticfile:(.+)/) { } |
|
|
0 |
6 |
elsif (not ref $attr and $attr =~ /file:(.+)/) { } |
|
|
0 |
9 |
elsif (not ref $attr and $attr =~ /raw:(.+)/) { } |
|
517
|
0 |
6 |
if (defined $extensions{$origtag}) |
|
518
|
0 |
0 |
if (defined $extensions{$origtag}{'scalarattr'} and not ref $attr) |
|
520
|
0 |
0 |
if (defined $extensions{$origtag}{'before'}) |
|
522
|
0 |
0 |
if (ref $o eq 'ARRAY') { } |
|
|
0 |
0 |
elsif (ref $o eq '') { } |
|
529
|
0 |
0 |
if (defined $extensions{$origtag}{'tag'}) |
|
532
|
0 |
0 |
if (defined $extensions{$origtag}{'attr'}) |
|
533
|
0 |
0 |
if (ref $attr ne "HASH") |
|
537
|
0 |
0 |
if (defined $attr->{$k}) { } |
|
539
|
0 |
0 |
if ($k eq "class") |
|
548
|
0 |
0 |
if (defined $extensions{$origtag}{'replace'}) |
|
550
|
0 |
0 |
if (ref $o eq 'HASH') { } |
|
|
0 |
0 |
elsif (ref $o eq '') { } |
|
560
|
0 |
6 |
if ($tag eq '_') { } |
|
|
0 |
6 |
elsif ($tag eq 'raw') { } |
|
|
0 |
6 |
elsif ($tag eq 'if') { } |
|
|
0 |
6 |
elsif ($tag eq 'switch') { } |
|
|
0 |
6 |
elsif ($tag eq 'md') { } |
|
|
0 |
6 |
elsif ($tag eq 'plain') { } |
|
|
0 |
6 |
elsif ($tag eq 'currency') { } |
|
|
0 |
6 |
elsif ($tag eq 'pluralize') { } |
|
|
0 |
6 |
elsif ($tag eq 'include') { } |
|
|
0 |
6 |
elsif ($tag eq 'javascript') { } |
|
|
0 |
6 |
elsif ($tag eq 'includejs') { } |
|
|
0 |
6 |
elsif ($tag eq 'includecss') { } |
|
|
1 |
5 |
elsif ($tag eq 'doctype') { } |
|
|
0 |
5 |
elsif (ref $attr eq 'HASH' and defined $attr->{'removeif'} and $attr->{'removeif'}) { } |
|
|
5 |
0 |
elsif ($tag) { } |
|
561
|
0 |
0 |
if (ref $attr) { } |
|
568
|
0 |
0 |
if (ref $attr) { } |
|
575
|
0 |
0 |
if (ref $attr eq 'HASH') { } |
|
|
0 |
0 |
elsif (ref $attr eq 'ARRAY') { } |
|
576
|
0 |
0 |
if ($attr->{'cond'} and $attr->{'true'}) { } |
|
|
0 |
0 |
elsif (not $attr->{'cond'} and $attr->{'false'}) { } |
|
583
|
0 |
0 |
if ($attr->[$i]) |
|
592
|
0 |
0 |
if (ref $attr eq 'HASH') { } |
|
593
|
0 |
0 |
if (defined $$attr{$attr->{'val'}}) { } |
|
|
0 |
0 |
elsif (defined $attr->{'_default'}) { } |
|
|
0 |
0 |
elsif (defined $attr->{'_'}) { } |
|
605
|
0 |
0 |
if (ref $attr) { } |
|
612
|
0 |
0 |
if (ref $attr) { } |
|
619
|
0 |
0 |
if (ref $attr eq 'HASH') { } |
|
|
0 |
0 |
elsif (not ref $attr) { } |
|
628
|
0 |
0 |
if (ref $attr eq 'ARRAY') { } |
|
641
|
0 |
0 |
if (not ref $attr) { } |
|
|
0 |
0 |
elsif (ref $attr == 'HASH') { } |
|
645
|
0 |
0 |
if ($attr->{'defer'}) |
|
648
|
0 |
0 |
if ($attr->{'async'}) |
|
673
|
0 |
5 |
if ($tags{$tag} & 2 and ref $attr ne "HASH") |
|
678
|
0 |
5 |
if ($warn_on_unknown_tag and not defined $tags{$tag}) |
|
683
|
0 |
5 |
if (not defined $attr) { } |
|
|
3 |
2 |
elsif (ref $attr eq 'ARRAY') { } |
|
|
0 |
2 |
elsif (ref $attr eq 'HASH') { } |
|
|
0 |
2 |
elsif (ref $attr eq 'CODE') { } |
|
|
2 |
0 |
elsif (ref $attr eq '') { } |
|
684
|
0 |
0 |
if ($tags{$tag} & 2) { } |
|
|
0 |
0 |
elsif ($tags{$tag} & 1) { } |
|
685
|
0 |
0 |
if ($mode eq 'XHTML') { } |
|
703
|
0 |
0 |
if (ref $k eq 'ARRAY') { } |
|
|
0 |
0 |
elsif (ref $attrs{$k} eq 'ARRAY') { } |
|
|
0 |
0 |
elsif (ref $attrs{$k} eq 'HASH') { } |
|
|
0 |
0 |
elsif ($k eq '_') { } |
|
708
|
0 |
0 |
if ($k ne "_") |
|
715
|
0 |
0 |
if ($k eq 'style') { } |
|
|
0 |
0 |
elsif ($k eq 'if') { } |
|
|
0 |
0 |
elsif (defined $attrs{$k}{'if'}) { } |
|
723
|
0 |
0 |
if ($val->{'cond'} and $val->{'true'}) { } |
|
|
0 |
0 |
elsif (not $val->{'cond'} and $val->{'false'}) { } |
|
733
|
0 |
0 |
if ($attrs{$k}{'if'} and defined $attrs{$k}{'true'}) { } |
|
|
0 |
0 |
elsif (not $attrs{$k}{'if'} and defined $attrs{$k}{'false'}) { } |
|
747
|
0 |
0 |
if ($tags{$tag} & 2) { } |
|
|
0 |
0 |
elsif (defined $content) { } |
|
|
0 |
0 |
elsif ($tags{$tag} & 1) { } |
|
749
|
0 |
0 |
if ($mode eq 'XHTML') { } |
|
761
|
0 |
0 |
if ($mode eq 'XHTML') { } |
|
773
|
0 |
0 |
if ($@) |
|
780
|
0 |
6 |
if (defined $extensions{$origtag} and defined $extensions{$origtag}{'after'}) |
|
792
|
0 |
0 |
if (defined $val) |
|
838
|
0 |
39 |
if (defined $flags) { } |