Condition Coverage

lib/ChordPro/Delegate/ABC.pm
Criterion Covered Total %
condition 8 79 10.1


and 3 conditions

line !l l&&!r l&&r condition
60 0 0 0 not $abc2svg->{'external'} and fs_test("s", "default.abc")
78 0 0 0 index($abc2svg->{'method'}, "QuickJS_XS") == -1 and fs_test("s", "default.abc")
127 0 0 0 @pre and not @data
352 0 0 0 m[^
0 0 0 m[^
437 0 0 9 $handler eq "abc2svg" and not $ctl->{'program'}
0 0 0 $handler eq "abc2svg" and $ctl->{'program'}
0 0 0 $handler eq "abc2svg" and $ctl->{'program'} and $exe = CP()->findexe($ctl->{'program'}, "silent", 1)
442 0 0 9 $handler ne "quickjs_qjs" and have_xs()
0 0 0 $handler ne "quickjs_xs" and $exe = CP()->findexe("qjs", "silent", 1)
486 0 0 0 @pre and not @data

or 2 conditions

line l !l condition
57 0 0 $main::config->{'delegates'}{'abc'}{'config'} // "default"
108 0 0 $cfg->{'preamble'} // []
135 0 0 $kv->{'split'} //= 1
136 0 0 $kv->{'scale'} ||= 1
137 0 0 $kv->{'center'} // 0
164 0 0 $cfg->{'postamble'} // []
413 9 0 $ctl->{'handler'} // "abc2svg"
489 0 0 $kv->{'center'} // 0

or 3 conditions

line l !l&&r !l&&!r condition
137 0 0 0 $kv->{'align'} //= $kv->{'center'} // 0 ? "center" : "left"
177 0 0 0 is_wx() || is_msw()
397 0 9 0 $ok //= eval { do { require JavaScript::QuickJS } }
404 0 0 0 defined $data or $fn eq "default.abc"
422 0 9 0 $checked or $handler eq "abc2svg"
9 0 0 $checked or $handler eq "abc2svg" or $handler =~ /^quickjs(?:_(?:xs|qjs))?$/u
437 9 0 0 $handler eq "abc2svg" and not $ctl->{'program'} or $handler eq "quickjs"
9 0 0 $handler eq "abc2svg" and not $ctl->{'program'} or $handler eq "quickjs" or $handler eq "quickjs_xs"
0 0 0 $handler eq "abc2svg" and not $ctl->{'program'} or $handler eq "quickjs" or $handler eq "quickjs_xs" or $handler eq "quickjs_qjs"
489 0 0 0 $kv->{'align'} //= $kv->{'center'} // 0 ? "center" : "left"