blib/lib/CodeGen/Cpppp.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 52 | 55.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
39 | 7 | 0 | 0 | @attrs == 1 && ref $attrs[0] |
44 | 6 | 0 | 1 | defined $self->{'include_path'} and ref $self->{'include_path'} ne "ARRAY" |
59 | 1 | 0 | 0 | $filename =~ m[/]u and -e $filename |
72 | 3 | 0 | 1 | $class_or_filename =~ /^CodeGen::Cpppp::/u && $class_or_filename->can('new') |
79 | 0 | 0 | 0 | 1 == @params && ref $params[0] eq 'HASH' |
358 | 23 | 26 | 6 | $prev_eval && $prev_eval->{'line'} == $s->{'line'} |
line | l | !l | condition |
---|---|---|---|
17 | 0 | 18 | $self->{'autocomma'} // 1 |
21 | 0 | 18 | $self->{'autostatementline'} // 1 |
25 | 0 | 18 | $self->{'autoindent'} // 1 |
29 | 0 | 18 | $self->{'autocolumn'} // 1 |
33 | 1 | 0 | $_[0]{'include_path'} //= [] |
97 | 15 | 0 | $parse->{'code'} // "" |
260 | 11 | 15 | $self->{'cpppp_parse'}{'code_block_templates'} ||= [] |
308 | 26 | 2 | $orig_line || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
34 | 3 | 1 | 0 | $_[0]{'output'} //= "CodeGen::Cpppp::Output"->new |
50 | 2 | 1 | 0 | $self->{'templates'}{$filename} ||= do { croak("No template '${filename}' found") unless my $path = $self->find_template($filename); $self->{'templates'}{$path} ||= $self->compile_cpppp($path) } |
53 | 0 | 1 | 0 | $self->{'templates'}{$path} ||= $self->compile_cpppp($path) |
128 | 0 | 15 | 0 | $cpppp_ver //= $VERSION |
129 | 15 | 0 | 0 | $src_filename //= $parse->{'filename'} |
399 | 58 | 15 | 40 | defined $_->{'eval'} || defined $_->{'colgroup'} |