Skip to content

Commit

Permalink
chore: ensure 100% test coverage on diff
Browse files Browse the repository at this point in the history
  • Loading branch information
clintval committed Dec 27, 2024
1 parent 8c4ce6f commit dc17e0d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/fgpyo/sam/test_sam.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,6 +420,8 @@ def test_pair_orientation_build_raises_if_it_cant_find_mate_cigar_tag_positive_f
r1.set_tag("MC", None) # Clear out the MC tag.
r2.set_tag("MC", None) # Clear out the MC tag.

assert PairOrientation.from_recs(r1, r2) is PairOrientation.FR

with pytest.raises(ValueError):
PairOrientation.from_recs(r1)

Expand All @@ -431,6 +433,9 @@ def test_pair_orientation_build_raises_if_it_cant_find_mate_cigar_tag_positive_r
builder = SamBuilder()
r1, r2 = builder.add_pair(chrom="chr1", start1=16, cigar1="1M", start2=15, cigar2="1M")
sam.set_pair_info(r1, r2)

assert PairOrientation.from_recs(r1, r2) is PairOrientation.RF

r1.set_tag("MC", None) # Clear out the MC tag.
r2.set_tag("MC", None) # Clear out the MC tag.

Expand Down

0 comments on commit dc17e0d

Please sign in to comment.