Branch Coverage

blib/lib/App/Rangeops/Command/clean.pm
Criterion Covered Total %
branch 40 68 58.8


line true false branch
42 0 4 unless (@{$args;})
49 0 4 if lc $_ eq 'stdin'
50 0 4 unless (Path::Tiny::path($_)->is_file)
55 0 4 if (not exists $opt->{'outfile'})
69 1 3 if ($opt->{'replace'})
70 0 1 if $opt->{'verbose'}
75 6 0 if (@parts == 2)
84 0 4 if $opt->{'verbose'}
95 9 126 if (exists $replace_of->{$part}) { }
116 45 0 if (@new_parts == 3 or @new_parts == 2)
120 45 0 if (App::RL::Common::info_is_valid($info_0) and App::RL::Common::info_is_valid($info_1))
125 45 0 if (@new_parts == 3)
126 45 0 if ($new_parts[2] eq '+' or $new_parts[2] eq '-')
132 45 0 if (@new_parts == 2)
141 33 12 if (@strands == 1) { }
166 45 0 if (@new_parts == 2)
170 45 0 if (App::RL::Common::info_is_valid($info_0) and App::RL::Common::info_is_valid($info_1))
173 8 4 if ($info_0->{'chr'} eq $info_1->{'chr'} and $info_0->{'start'} == $info_1->{'start'} and $info_0->{'end'} == $info_1->{'end'})
196 0 7 if $opt->{'verbose'}
221 5 16 if ($intspan0_i->superset($intspan0_j) and $intspan1_i->superset($intspan1_j)) { }
0 28 elsif ($intspan0_j->superset($intspan0_i) and $intspan1_j->superset($intspan1_i)) { }
241 1 3 if ($opt->{'bundle'})
242 0 1 if $opt->{'verbose'}
264 3 0 unless ($graph->has_vertex($line_i))
267 3 0 unless ($graph->has_vertex($line_j))
277 1 2 if ($intspan0_i->overlap($intspan0_j) >= $opt->{'bundle'} and $intspan1_i->overlap($intspan1_j) >= $opt->{'bundle'})
289 0 1 if $opt->{'verbose'}
316 0 1 if $opt->{'verbose'}
329 1 3 if ($opt->{'replace'})
330 0 1 if $opt->{'verbose'}
334 0 8 $info_of->{$r0}{'chr'} eq $info_of->{$r1}{'chr'} ? :
344 0 0 if ($intspan_i->is_not_empty)
345 0 0 if ($intspan_i->size / $intspan0->size > 0.5 and $intspan_i->size / $intspan1->size > 0.5)
358 4 0 if (lc $opt->{'outfile'} eq 'stdout') { }