Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename test namespaces to conventional names #105

Merged
merged 1 commit into from
Sep 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns cljam.algo.t-bam-indexer
(ns cljam.algo.bam-indexer-test
"Tests for cljam.algo.bam-indexer."
(:require [clojure.test :refer :all]
[clojure.java.io :as cio]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.sam :as sam]
[cljam.algo.sorter :as sorter]
[cljam.algo.bam-indexer :as bai]))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.algo.t-dedupe
(ns cljam.algo.dedupe-test
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.algo.dedupe :as dedupe]))

(deftest simple-pe-dedupe
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.algo.t-depth
(ns cljam.algo.depth-test
(:require [clojure.test :refer :all]
[cljam.t-common :as common]
[cljam.test-common :as common]
[cljam.io.sam :as sam]
[cljam.algo.depth :as depth])
(:import [clojure.lang LazySeq ArraySeq]))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns cljam.algo.t-dict
(ns cljam.algo.dict-test
"Tests for cljam.algo.dict."
(:require [clojure.test :refer :all]
[clojure.string :as string]
[clojure.java.io :as cio]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.algo.dict :as dict]))

(defn same-dict-file? [f1 f2]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns cljam.algo.t-fasta-indexer
(ns cljam.algo.fasta-indexer-test
"Tests for cljam.fasta-indexer."
(:require [clojure.test :refer :all]
[clojure.java.io :as cio]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.algo.fasta-indexer :as fai]))

(def temp-fa-file (str temp-dir "/test.fa"))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.algo.t-normal
(ns cljam.algo.normal-test
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.algo.normal :refer :all]
[cljam.io.sam :as sam]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.algo.t-pileup
(ns cljam.algo.pileup-test
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.sam :as sam]
[cljam.io.sequence :as cseq]
[cljam.algo.pileup :as plp]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.algo.t-sorter
(ns cljam.algo.sorter-test
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.sam :as sam]
[cljam.algo.sorter :as sorter])
(:import [java.io Closeable]))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns cljam.io.t-bam-index
(ns cljam.io.bam-index-test
"Tests for cljam.io.bam-index."
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.bam-index :as bai]))

;;; bin-index
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns cljam.io.bcf.t-writer
(ns cljam.io.bcf.writer-test
(:require [clojure.test :refer :all]
[cljam.io.bcf.writer :as bcf-writer])
(:import [java.nio ByteBuffer]))
Expand Down
4 changes: 2 additions & 2 deletions test/cljam/io/t_bed.clj → test/cljam/io/bed_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.io.t-bed
(ns cljam.io.bed-test
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.bed :as bed]
[cljam.io.sam :as sam]
[cljam.io.sam.util :as sam-util]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns cljam.io.fasta.t-core
(ns cljam.io.fasta.core-test
(:require [clojure.test :refer :all]
[clojure.string :as cstr]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.fasta.core :as fa-core]))

(def illegal-fasta-file test-tabix-file)
Expand Down
4 changes: 2 additions & 2 deletions test/cljam/io/t_fastq.clj → test/cljam/io/fastq_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.io.t-fastq
(ns cljam.io.fastq-test
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[clojure.java.io :as cio]
[cljam.io.fastq :as fq]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns cljam.io.sam.t-util
(ns cljam.io.sam.util-test
"Tests for cljam.io.sam.util."
(:require [clojure.test :refer :all]
[clojure.string :as cstr]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.util :as util]
[cljam.io.sam.util :as sam-util]))

Expand Down
4 changes: 2 additions & 2 deletions test/cljam/io/t_sam.clj → test/cljam/io/sam_test.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns cljam.io.t-sam
(ns cljam.io.sam-test
(:require [clojure.test :refer :all]
[clojure.java.io :as cio]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.sam :as sam]
[cljam.util :as util]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns cljam.io.t-sequence
(ns cljam.io.sequence-test
(:require [clojure.test :refer :all]
[clojure.java.io :as cio]
[clojure.string :as cstr]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.fasta.core :as fa-core]
[cljam.io.sequence :as cseq]
[cljam.util :as util]))
Expand Down
4 changes: 2 additions & 2 deletions test/cljam/io/t_tabix.clj → test/cljam/io/tabix_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.io.t-tabix
(ns cljam.io.tabix-test
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.tabix :as tbi]))

(deftest about-read-index-with-error
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns cljam.io.util.t-cigar
(ns cljam.io.util.cigar-test
(:require [clojure.test :refer :all]
[cljam.io.util.cigar :as cgr]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns cljam.io.util.t-lsb
(ns cljam.io.util.lsb-test
(:require [clojure.test :refer :all]
[clojure.java.io :as cio]
[cljam.t-common :as common]
[cljam.test-common :as common]
[cljam.io.util.lsb :as lsb])
(:import [java.nio ByteBuffer ByteOrder]
[java.io RandomAccessFile DataInputStream FileInputStream]
Expand Down
4 changes: 2 additions & 2 deletions test/cljam/io/t_util.clj → test/cljam/io/util_test.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns cljam.io.t-util
(ns cljam.io.util-test
(:require [clojure.test :refer :all]
[clojure.java.io :as cio]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.util :as util]
[cljam.io.bed :as bed]
[cljam.io.fastq :as fastq]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns cljam.io.vcf.t-util
(ns cljam.io.vcf.util-test
(:require [clojure.test :refer :all]
[clojure.string :as cstr]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.vcf.util :as vcf-util]))

(deftest about-parse-info
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.io.vcf.t-writer
(ns cljam.io.vcf.writer-test
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.vcf.writer :as vcf-writer]))

(deftest stringify-meta-info-pedigree
Expand Down
4 changes: 2 additions & 2 deletions test/cljam/io/t_vcf.clj → test/cljam/io/vcf_test.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns cljam.io.t-vcf
(ns cljam.io.vcf-test
(:require [clojure.test :refer :all]
[clojure.java.io :as cio]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[cljam.io.vcf :as vcf]
[cljam.util :as util])
(:import bgzf4j.BGZFException))
Expand Down
2 changes: 1 addition & 1 deletion test/cljam/t_common.clj → test/cljam/test_common.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns cljam.t-common
(ns cljam.test-common
(:require [digest]
[clojure.java.io :refer [file]]
[clojure.tools.logging :refer [*logger-factory*]]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns cljam.tools.t-cli
(ns cljam.tools.cli-test
(:require [clojure.test :refer :all]
[cljam.t-common :refer :all]
[cljam.test-common :refer :all]
[clojure.java.io :as cio]
[cljam.tools.cli :as cli]
[cljam.io.sam :as sam])
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns cljam.util.t-chromosome
(ns cljam.util.chromosome-test
(:require [clojure.test :refer :all]
[cljam.util.chromosome :as chr]))

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns cljam.util.t-whole-genome
(ns cljam.util.whole-genome-test
(:require [clojure.test :refer :all]
[cljam.util.whole-genome :as wg]))

Expand Down
2 changes: 1 addition & 1 deletion test/cljam/t_util.clj → test/cljam/util_test.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(ns cljam.t-util
(ns cljam.util-test
"Tests for cljam.util."
(:require [clojure.test :refer :all]
[cljam.util :as util]))
Expand Down