INNER CODE UNIT · Rust

bam_is_not_sorted_fails

mbhall88/rasusa · src/alignment/mod.rs:211

    fn bam_is_not_sorted_fails() {
        let infile = "tests/cases/test_not_sorted.bam";
        let passed_args = vec![SUB, infile, "-c", "1"];
        let mut cmd = Command::cargo_bin(env!("CARGO_PKG_NAME")).unwrap();

        cmd.args(passed_args).assert().failure();
    }

    // helper function to run subsamping aln and get the resulted read names
    fn run_aln_get_reads_result(
        input: &Path,
        seed: Option<u64>,
        strategy: SubsamplingStrategy,
    ) -> Vec<String> {
        run_aln_get_reads_result_with_threads(input, seed, strategy, NonZeroUsize::new(1).unwrap())
    }

    // as above, but with a configurable thread count - used to check that `--threads` doesn't

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…