Skip to content

Commit

Permalink
Add more tests to improve coverage for CRAM region read
Browse files Browse the repository at this point in the history
  • Loading branch information
athos committed May 15, 2024
1 parent b1b0ea4 commit 3623b37
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/cljam/io/cram_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,12 @@
(cram/read-refs cram-rdr')))
(is (= (map fixup-bam-aln (sam/read-alignments bam-rdr))
(cram/read-alignments cram-rdr)
(cram/read-alignments cram-rdr')))))
(cram/read-alignments cram-rdr')))
(are [?region ?count] (= ?count
(count (cram/read-alignments cram-rdr ?region))
(count (cram/read-alignments cram-rdr' ?region)))
{:chr "ref"} 6
{:chr "ref2", :start 35, :end 35} 2)))

(deftest-remote reader-with-multiple-containers-test
(with-before-after {:before (prepare-cavia!)}
Expand Down

0 comments on commit 3623b37

Please sign in to comment.