From 3623b3705b72f9346ddea12bb6ae390ab8325c5e Mon Sep 17 00:00:00 2001 From: Shogo Ohta Date: Wed, 15 May 2024 18:18:13 +0900 Subject: [PATCH] Add more tests to improve coverage for CRAM region read --- test/cljam/io/cram_test.clj | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/cljam/io/cram_test.clj b/test/cljam/io/cram_test.clj index 26e4b553..de1ff416 100644 --- a/test/cljam/io/cram_test.clj +++ b/test/cljam/io/cram_test.clj @@ -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!)}