Branch Coverage

blib/lib/App/RL/Command/position.pm
Criterion Covered Total %
branch 30 40 75.0


line true false branch
45 2 4 if (@{$args;} < 2)
52 0 7 if lc $_ eq 'stdin'
53 1 6 unless (Path::Tiny::path($_)->is_file)
58 1 2 if ($opt->{'op'} =~ /^overlap/i) { }
1 1 elsif ($opt->{'op'} =~ /^non/i) { }
1 0 elsif ($opt->{'op'} =~ /^superset/i) { }
71 0 3 if (not exists $opt->{'outfile'})
94 3 0 if (lc $opt->{'outfile'} eq 'stdout') { }
103 0 15 if substr($line, 0, 1) eq '#'
107 0 15 unless App::RL::Common::info_is_valid($info)
109 0 15 if $opt->{'remove'}
113 5 10 if ($opt->{'op'} eq 'overlap')
114 5 0 if ($chrs->has($info->{'chr'}))
116 2 3 if ($chr_single->intersect($cur_positions)->is_not_empty)
122 5 10 if ($opt->{'op'} eq 'non-overlap')
123 5 0 if ($chrs->has($info->{'chr'})) { }
125 3 2 if ($chr_single->intersect($cur_positions)->is_empty)
134 5 10 if ($opt->{'op'} eq 'superset')
135 5 0 if ($chrs->has($info->{'chr'}))
137 2 3 if ($chr_single->superset($cur_positions))