Branch Coverage

blib/lib/MojoX/CustomTemplateFileParser.pm
Criterion Covered Total %
branch 41 46 89.1


line true false branch
72 16 140 if ($environment eq 'head')
73 4 12 if ($line =~ /$test_start/i)
76 0 4 defined $2 ? :
79 0 4 if (defined $skipit and $skipit eq 'no')
85 4 0 defined $3 ? :
96 24 116 if ($environment eq 'beginning')
97 16 8 if ($line eq $template_separator)
104 32 84 if ($environment eq 'template')
105 16 16 if ($line eq $template_separator)
106 12 4 if (scalar @{$test->{'lines_template'};})
116 12 4 if scalar @{$test->{'lines_template'};} or not $line =~ /^\s*$/
119 24 60 if ($environment eq 'between')
120 16 8 if ($line eq $expected_separator)
127 32 28 if ($environment eq 'expected')
128 16 16 if ($line eq $expected_separator)
130 16 0 if (scalar @{$test->{'lines_expected'};})
139 28 0 if ($environment eq 'ending')
140 12 16 if ($line =~ /$test_start/i)
145 4 8 if (defined $skipit and $skipit eq 'no')
148 4 8 defined $2 ? :
157 8 8 if scalar @{$test->{'lines_after'};} or not $line =~ /^\s*$/
181 8 8 if not scalar @{$test->{'lines_template'};} or $test->{'skip'}
184 4 4 unless (scalar @{$test->{'loop'};})