Branch Coverage

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


line true false branch
97 0 42 if ($self->testDetectChar($text, '"', 0, 0, 0, undef, 0, '#pop', 'Normal Text'))
104 36 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 6 0 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 342 if ($self->testRegExpr($text, '\\([23456789]:?[23456789]?:?[23456789]?', 0, 0, 0, undef, 0, '#stay', 'Tuplet'))
189 0 342 if ($self->testRangeDetect($text, '"', '"', 0, 0, undef, 0, '#stay', 'String'))
197 0 342 if ($self->testRangeDetect($text, '!', '!', 0, 0, undef, 0, '#stay', 'Decoration'))
204 0 342 if ($self->testRegExpr($text, '\\[[ABCGHILMNOQRSTUVZ]:', 0, 0, 0, undef, 0, 'Header', 'Header'))
211 12 330 if ($self->testRegExpr($text, '[ABCGHILMNOPQRSTUVZ]:', 0, 0, 0, undef, 0, 'Header2', 'Header'))
221 0 330 if ($self->testDetect2Chars($text, 'X', ':', 0, 0, 0, 0, 0, 'Header', 'Header'))
228 42 288 if ($self->testAnyChar($text, '|:[', 0, 0, undef, 0, 'Bar', 'Bar'))
235 0 288 if ($self->testDetectChar($text, ']', 0, 0, 0, undef, 0, '#stay', 'Bar'))
242 0 288 if ($self->testAnyChar($text, '()', 0, 0, undef, 0, '#stay', 'Slur'))
249 0 288 if ($self->testAnyChar($text, '{}', 0, 0, undef, 0, '#stay', 'Slur'))
257 0 288 if ($self->testDetect2Chars($text, 'W', ':', 0, 0, 0, undef, 0, 'Lyrics', 'Lyrics'))
265 0 288 if ($self->testDetect2Chars($text, 'w', ':', 0, 0, 0, undef, 0, 'Lyrics', 'Lyrics'))
273 0 288 if ($self->testDetect2Chars($text, '%', '%', 0, 0, 0, undef, 0, 'Preprocessor', 'Preprocessor'))
280 2 286 if ($self->testDetectChar($text, '%', 0, 0, 0, undef, 0, 'Comment', 'Comment'))
287 0 286 if ($self->testRegExpr($text, '[_|\\^]?[_|=|\\^][A-Ga-g]', 0, 0, 0, undef, 0, '#stay', 'Sharp'))