Skip to content

Commit

Permalink
test(search): integration tests for crypt4gh and fix CRAM eof range
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalenic committed Apr 18, 2024
1 parent 31c72e2 commit 7e5ee23
Show file tree
Hide file tree
Showing 12 changed files with 1,397 additions and 294 deletions.
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added data/crypt4gh/htsnexus_test_NA12878.cram.c4gh
Binary file not shown.
Binary file added data/crypt4gh/sample1-bcbio-cancer.bcf.c4gh
Binary file not shown.
Binary file added data/crypt4gh/spec-v4.3.vcf.gz.c4gh
Binary file not shown.
2 changes: 1 addition & 1 deletion htsget-config/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ impl KeyType {
/// Get the key type from an ending.
pub fn from_ending<K: AsRef<str>>(key: K) -> KeyType {
if key.as_ref().ends_with(Format::Bam.index_file_ending())
|| key.as_ref().ends_with(Format::Vcf.index_file_ending())
|| key.as_ref().ends_with(Format::Bcf.index_file_ending())
|| key.as_ref().ends_with(Format::Cram.index_file_ending())
|| key.as_ref().ends_with(Format::Vcf.index_file_ending())
|| key.as_ref().ends_with(".bam.gzi")
Expand Down
1 change: 1 addition & 0 deletions htsget-search/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ serde = "1.0"
[dev-dependencies]
tempfile = "3.6"
data-url = "0.3"
walkdir = "2.5"

# Axum server
reqwest = { version = "0.11", default-features = false, features = ["rustls-tls"] }
Expand Down
Loading

0 comments on commit 7e5ee23

Please sign in to comment.