Condition Coverage

blib/lib/HTML/Mason/Compiler.pm
Criterion Covered Total %
condition 18 29 62.0


and 3 conditions

line !l l&&!r l&&r condition
151 0 5 0 @_ == 1 and not defined $_[0]
275 239 26 0 $top_level_only_block{$p{'block_type'}} and not $c->{'in_main'}
298 0 0 129 $self->lexer->line_number and $self->use_source_line_numbers
463 0 361 22 exists $p{'escape'} and defined $p{'escape'}
631 0 296 1937 $self->lexer->line_number and $self->{'current_compile'}{'last_body_code_type'} ne 'perl_line'
296 11 1926 $self->lexer->line_number and $self->{'current_compile'}{'last_body_code_type'} ne 'perl_line' and $self->use_source_line_numbers

or 2 conditions

line l !l condition
679 0 0 shift() || ''

or 3 conditions

line l !l&&r !l&&!r condition
116 391 0 6257 exists $spec->{$_}{'isa'} || exists $spec->{$_}{'can'}
388 19 43 0 $p{'block_type'} eq 'flags' or $p{'block_type'} eq 'attr'
463 22 7 354 exists $p{'escape'} and defined $p{'escape'} or @{$self->{'default_escape_flags'};}