| blib/lib/Template/LiquidX/Tag/Include.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| branch | 11 | 18 | 61.1 |
| line | true | false | branch |
|---|---|---|---|
| 11 | 0 | 2 | $_[1] ? : |
| 21 | 0 | 4 | unless defined $args->{'template'} |
| 26 | 0 | 4 | unless defined $args->{'parent'} |
| 32 | 0 | 4 | unless defined $args->{'attrs'} |
| 46 | 1 | 3 | unless defined $file |
| 52 | 0 | 3 | if (not $file =~ m[^[\w\\/\.-_]+$]io or $file =~ m[\.[\\/]]o or $file =~ m([//\\]\.)o) |
| 67 | 1 | 2 | unless -f $file |
| 74 | 0 | 2 | unless open my $FH, '<', $file |
| 81 | 0 | 2 | unless sysread($FH, my $DATA, -s $FH) == -s $FH |