Branch Coverage

lib/ChordPro/Delegate/ABC.pm
Criterion Covered Total %
branch 7 150 4.6


line true false branch
38 0 0 if ($method eq "options")
51 0 0 if (DEBUG())
56 0 0 unless ($cfg_checked++)
57 0 0 if (($main::config->{'delegates'}{'abc'}{'config'} // "default") ne "default")
60 0 0 if not $abc2svg->{'external'} and fs_test("s", "default.abc")
66 0 0 unless @{$elt->{'data'};}
68 0 0 unless ($abc2svg->{'method'})
78 0 0 if index($abc2svg->{'method'}, "QuickJS_XS") == -1 and fs_test("s", "default.abc")
114 0 0 if $_ ne "transpose"
124 0 0 if /^X:/u
127 0 0 if (@pre and not @data)
128 0 0 if DEBUG()
133 0 0 if @pre
137 0 0 $kv->{'center'} // 0 ? :
138 0 0 if ($kv->{'width'})
143 0 0 $pw ? :
149 0 0 unless ($fd = fs_open($src, ">:utf8"))
157 0 0 if DEBUG() > 1
160 0 0 if $prep->{'abc'}
162 0 0 if DEBUG() > 1
166 0 0 if DEBUG() > 1
169 0 0 unless (close $fd)
177 0 0 if ($abc2svg->{'method'} eq 'QuickJS_XS') { }
0 0 elsif ($abc2svg->{'method'} eq 'QuickJS') { }
0 0 elsif (not is_wx() || is_msw()) { }
193 0 0 @stat ? :
197 0 0 if (fs_test('sr', "$base/$fn")) { }
0 0 elsif ($onerror) { }
199 0 0 if $relay
217 0 0 if DEBUG()
219 0 0 unless fs_test("s", $hooks)
223 0 0 if $hooks
224 0 0 if (-r "$base/../cmd.js") { }
225 0 0 $hooks ? :
0 0 if DEBUG()
231 0 0 $hooks ? :
0 0 if DEBUG()
239 0 0 if $@
242 0 0 if (DEBUG())
256 0 0 if (DEBUG())
274 0 0 if DEBUG()
278 0 0 unless open $oldout, ">&STDOUT"
280 0 0 unless open $olderr, ">&", \*STDERR
283 0 0 unless open STDOUT, ">:utf8", $out
285 0 0 unless open STDERR, ">:utf8", $err
295 0 0 unless open STDOUT, ">&", $oldout
297 0 0 unless open STDERR, ">&", $olderr
320 0 0 if DEBUG()
326 0 0 if ($ret)
330 0 0 unless (@lines)
334 0 0 if DEBUG() > 1
343 0 0 if (/\