Branch Coverage

blib/lib/Syntax/Highlight/Engine/Kate/ABC.pm
Criterion Covered Total %
branch 26 46 56.5


line true false branch
97 0 46 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
104 40 6 if ($self->testRegExpr($text, '[A-Ga-gZz]', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
111 0 6 if ($self->testDetectChar($text, ' ', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
119 0 6 if ($self->testRangeDetect($text, '!', '!', 0, 0, undef, 0, '#stay', 'Decoration'))
126 0 6 if ($self->testAnyChar($text, '()', 0, 0, undef, 0, '#stay', 'Slur'))
133 4 2 if ($self->testRegExpr($text, ':*\\|*[1-9]|/*\\|', 0, 0, 0, undef, 0, '#pop', 'Bar'))
152 0 0 if ($self->testRegExpr($text, 'K:.+', 0, 0, 0, 0, 0, '#pop', 'Header'))
159 0 0 if ($self->testDetectChar($text, ']', 0, 0, 0, undef, 0, '#pop', 'Header'))
181 0 352 if ($self->testRegExpr($text, '\\([23456789]:?[23456789]?:?[23456789]?', 0, 0, 0, undef, 0, '#stay', 'Tuplet'))
189 0 352 if ($self->testRangeDetect($text, '"', '"', 0, 0, undef, 0, '#stay', 'String'))
197 0 352 if ($self->testRangeDetect($text, '!', '!', 0, 0, undef, 0, '#stay', 'Decoration'))
204 0 352 if ($self->testRegExpr($text, '\\[[ABCGHILMNOQRSTUVZ]:', 0, 0, 0, undef, 0, 'Header', 'Header'))
211 12 340 if ($self->testRegExpr($text, '[ABCGHILMNOPQRSTUVZ]:', 0, 0, 0, undef, 0, 'Header2', 'Header'))
221 0 340 if ($self->testDetect2Chars($text, 'X', ':', 0, 0, 0, 0, 0, 'Header', 'Header'))
228 44 296 if ($self->testAnyChar($text, '|:[', 0, 0, undef, 0, 'Bar', 'Bar'))
235 0 296 if ($self->testDetectChar($text, ']', 0, 0, 0, undef, 0, '#stay', 'Bar'))
242 0 296 if ($self->testAnyChar($text, '()', 0, 0, undef, 0, '#stay', 'Slur'))
249 0 296 if ($self->testAnyChar($text, '{}', 0, 0, undef, 0, '#stay', 'Slur'))
257 0 296 if ($self->testDetect2Chars($text, 'W', ':', 0, 0, 0, undef, 0, 'Lyrics', 'Lyrics'))
265 0 296 if ($self->testDetect2Chars($text, 'w', ':', 0, 0, 0, undef, 0, 'Lyrics', 'Lyrics'))
273 0 296 if ($self->testDetect2Chars($text, '%', '%', 0, 0, 0, undef, 0, 'Preprocessor', 'Preprocessor'))
280 2 294 if ($self->testDetectChar($text, '%', 0, 0, 0, undef, 0, 'Comment', 'Comment'))
287 0 294 if ($self->testRegExpr($text, '[_|\\^]?[_|=|\\^][A-Ga-g]', 0, 0, 0, undef, 0, '#stay', 'Sharp'))