Branch Coverage

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


line true false branch
71 16 140 if ($environment eq 'head')
72 4 12 if ($line =~ /$test_start/)
75 0 4 defined $2 ? :
78 0 4 if (defined $skipit and $skipit eq 'no')
84 4 0 defined $3 ? :
95 24 116 if ($environment eq 'beginning')
96 16 8 if ($line eq $template_separator)
103 32 84 if ($environment eq 'template')
104 16 16 if ($line eq $template_separator)
105 12 4 if (scalar @{$$test{'lines_template'};})
115 12 4 if scalar @{$$test{'lines_template'};} or not $line =~ /^\s*$/
118 24 60 if ($environment eq 'between')
119 16 8 if ($line eq $expected_separator)
126 32 28 if ($environment eq 'expected')
127 16 16 if ($line eq $expected_separator)
129 16 0 if (scalar @{$$test{'lines_expected'};})
138 28 0 if ($environment eq 'ending')
139 12 16 if ($line =~ /$test_start/)
144 4 8 if (defined $skipit and $skipit eq 'no')
147 4 8 defined $2 ? :
156 8 8 if scalar @{$$test{'lines_after'};} or not $line =~ /^\s*$/
180 8 8 if not scalar @{$$test{'lines_template'};} or $$test{'skip'}
183 4 4 unless (scalar @{$$test{'loop'};})