| blib/lib/Template/Alloy/Compile.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 35 | 63 | 55.5 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 85 | 8 | 0 | 1 | -e $file and $doc->{'_is_str_ref'} || (stat $file)[9] == $doc->{'modtime'} |
| 105 | 7 | 0 | 1 | $self->{'ENCODING'} and eval { do { require Encode } } |
| 7 | 0 | 1 | $self->{'ENCODING'} and eval { do { require Encode } } and defined &Encode::encode | |
| 115 | 1697 | 0 | 0 | not $perl and $@ |
| 193 | 3716 | 0 | 8 | $self->{'_debug_dirs'} and not $self->{'_debug_off'} |
| 474 | 0 | 0 | 34 | $sub_tree && $sub_tree->[0] |
| 6 | 5 | 23 | ref $sub_tree->[0] and $sub_tree->[0][0] eq 'BLOCK' | |
| 618 | 390 | 0 | 28 | $node->[4] and $val == $node->[4] |
| 622 | 0 | 27 | 1 | $sub_tree->[0] and $sub_tree->[0][0] eq 'BLOCK' |
| 805 | 0 | 0 | 0 | @$key == 2 and not ref $key->[0] |
| 0 | 0 | 0 | @$key == 2 and not ref $key->[0] and not $key->[1] |
| line | l | !l | condition |
|---|---|---|---|
| 80 | 1 | 0 | $self->include_paths->[0] || '.' |
| 135 | 1695 | 1 | $doc->{'_filename'} || '' |
| 165 | 3822 | 0 | $self->{'_component'} || (return '') |
| 440 | 3 | 0 | $self->{'_in_loop'} || die('Found LAST while not in FOR, FOREACH or WHILE') |
| 536 | 2 | 0 | $self->{'_in_loop'} || die('Found next while not in FOR, FOREACH or WHILE') |
| 546 | 6 | 0 | $node->[4] || (return) |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 73 | 1580 | 164 | 0 | $doc->{'modtime'} ||= (stat $doc->{'_filename'})[9] |
| 74 | 4 | 5 | 1735 | $self->{'COMPILE_DIR'} or $self->{'COMPILE_EXT'} |
| 85 | 0 | 1 | 0 | $doc->{'_is_str_ref'} || (stat $file)[9] == $doc->{'modtime'} |
| 93 | 1 | 1744 | 0 | $perl ||= $self->compile_template($doc) |
| 126 | 3 | 1741 | 0 | $doc->{'_tree'} ||= $self->load_tree($doc) |
| 166 | 3822 | 0 | 0 | $doc->{'_content'} ||= $self->slurp($doc->{'_filename'}) |