Skip to content

Commit

Permalink
clojure-lsp clean-ns
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke committed Oct 14, 2024
1 parent 2c48be7 commit 2b3d4f2
Show file tree
Hide file tree
Showing 17 changed files with 31 additions and 30 deletions.
2 changes: 1 addition & 1 deletion src/clojure/lazytest/context.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns lazytest.context
(:require
[clojure.test :as c.t]))
[clojure.test :as c.t]))

(defn merge-context [context]
(reduce
Expand Down
6 changes: 3 additions & 3 deletions src/clojure/lazytest/experimental/interfaces/clojure_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
```
"
(:require
[clojure.string :as str]
[lazytest.core :refer [expect defdescribe it]]
[clojure.template :as temp]))
[clojure.string :as str]
[clojure.template :as temp]
[lazytest.core :refer [defdescribe expect it]]))

(def ^:dynamic ^:no-doc *testing-strs*
"Adapted from `clojure.test/*testing-contexts*`."
Expand Down
2 changes: 1 addition & 1 deletion src/clojure/lazytest/experimental/interfaces/qunit.clj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
(assert! (false? (pos? 0)) \"Expected to be false\"))
```"
(:require
[lazytest.core :refer [*context* it expect]]
[lazytest.core :refer [*context* expect it]]
[lazytest.suite :refer [suite suite?]]))

(defn prep-ns-suite!
Expand Down
2 changes: 1 addition & 1 deletion src/clojure/lazytest/experimental/interfaces/xunit.clj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
(assert! true))))
```"
(:require
[lazytest.core :refer [defdescribe describe it expect]]))
[lazytest.core :refer [defdescribe describe expect it]]))

(defmacro defsuite
"Alias of [[lazytest.core/defdescribe]] for the xUnit interface."
Expand Down
4 changes: 2 additions & 2 deletions src/clojure/lazytest/malli.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns lazytest.malli
(:require
[malli.core :as m]
[malli.registry :as mr]))
[malli.core :as m]
[malli.registry :as mr]))

(defonce ^:private registry* (atom {}))

Expand Down
8 changes: 4 additions & 4 deletions src/clojure/lazytest/repl.clj
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
(ns lazytest.repl
(:require
[lazytest.config :refer [->config]]
[lazytest.results :refer [summarize]]
[lazytest.runner :as runner]
[lazytest.reporters :as r]))
[lazytest.config :refer [->config]]
[lazytest.reporters :as r]
[lazytest.results :refer [summarize]]
[lazytest.runner :as runner]))

(def repl-config
{:reporter [r/focused r/results r/summary]})
Expand Down
2 changes: 1 addition & 1 deletion src/clojure/lazytest/reporters.clj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
[lazytest.suite :as s :refer [suite-result?]]
[lazytest.test-case :as tc])
(:import
lazytest.ExpectationFailed))
lazytest.ExpectationFailed))

(defn report [config m]
(when-let [reporter (:reporter config)]
Expand Down
2 changes: 1 addition & 1 deletion src/clojure/lazytest/results.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns lazytest.results
(:require
[lazytest.suite :refer [suite-result?]]))
[lazytest.suite :refer [suite-result?]]))

(defn result-seq
"Given a single suite result, returns a depth-first sequence of all
Expand Down
5 changes: 3 additions & 2 deletions src/clojure/lazytest/runner.clj
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
(ns lazytest.runner
(:require
[lazytest.context :refer [run-afters run-befores combine-arounds run-before-eachs run-after-eachs propagate-eachs]]
[lazytest.context :refer [combine-arounds propagate-eachs run-after-eachs
run-afters run-before-eachs run-befores]]
[lazytest.filter :refer [filter-tree]]
[lazytest.find :refer [find-suite find-var-test-value]]
[lazytest.malli]
[lazytest.reporters :as r :refer [nested report]]
[lazytest.suite :as s :refer [suite-result suite suite?]]
[lazytest.suite :as s :refer [suite suite-result suite?]]
[lazytest.test-case :refer [try-test-case]]))

(set! *warn-on-reflection* true)
Expand Down
2 changes: 1 addition & 1 deletion src/clojure/lazytest/watch.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns lazytest.watch
(:require
[clj-reload.core :as reload]
[clojure.string :as str]
[clojure.java.io :as io]
[clojure.string :as str]
[lazytest.color :refer [colorize]])
(:import
[java.io File]
Expand Down
2 changes: 1 addition & 1 deletion test/clojure/lazytest/cli_test.clj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns lazytest.cli-test
(:require
[lazytest.core :refer [defdescribe describe it expect]]))
[lazytest.core :refer [defdescribe describe expect it]]))

;; This exists merely to test the -i and -e flags
(defdescribe metadata-test
Expand Down
6 changes: 3 additions & 3 deletions test/clojure/lazytest/core_test.clj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
(ns lazytest.core-test
(:require
[lazytest.core :refer [causes-with-msg? causes? context defdescribe
describe expect expect-it it ok? should specify
throws-with-msg? throws? cause-seq]])
[lazytest.core :refer [cause-seq causes-with-msg? causes? context
defdescribe describe expect expect-it it ok? should
specify throws-with-msg? throws?]])
(:import
clojure.lang.ExceptionInfo
lazytest.ExpectationFailed))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(ns lazytest.experimental.interfaces.qunit-test
(:require
[lazytest.core :refer [defdescribe it expect]]
[lazytest.core :refer [defdescribe expect it]]
[lazytest.extensions.matcher-combinators :refer [match?]]))

(in-ns 'qunit-temp)
Expand Down
6 changes: 3 additions & 3 deletions test/clojure/lazytest/find_test.clj
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
(ns lazytest.find-test
{:focus true}
(:require
[lazytest.core :refer [defdescribe expect it describe before after]]
[clojure.string :as str]
[lazytest.core :refer [after before defdescribe describe expect it]]
[lazytest.extensions.matcher-combinators :refer [match?]]
[lazytest.main :as main]
[lazytest.runner :as lr]
[lazytest.test-utils :refer [with-out-str-data-map]]
[clojure.string :as str]))
[lazytest.test-utils :refer [with-out-str-data-map]]))

(defdescribe find-var-test-value-test
(let [output (volatile! nil)]
Expand Down
4 changes: 2 additions & 2 deletions test/clojure/lazytest/readme_test.clj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(ns lazytest.readme-test
(:require
[lazytest.core :refer [after around before defdescribe describe expect
expect-it it before-each]]))
[lazytest.core :refer [after around before before-each defdescribe describe
expect expect-it it]]))

(defdescribe +-test "with integers"
(expect-it "computes the sum of 1 and 2"
Expand Down
2 changes: 1 addition & 1 deletion test/clojure/lazytest/reporters_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[clojure.stacktrace :as stack]
[clojure.string :as str]
[lazytest.config :refer [->config]]
[lazytest.core :refer [defdescribe describe expect expect-it it ->ex-failed]]
[lazytest.core :refer [->ex-failed defdescribe describe expect expect-it it]]
[lazytest.reporters :as sut]
[lazytest.runner :as runner]
[lazytest.suite :as s]
Expand Down
4 changes: 2 additions & 2 deletions test/clojure/lazytest/runner_test.clj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
(ns lazytest.runner-test
(:require
[clojure.string :as str]
[lazytest.config :refer [->config]]
[lazytest.core :refer [*context* defdescribe describe expect it]]
[lazytest.reporters :as reporters]
[lazytest.runner :as sut]
[lazytest.test-utils :refer [with-out-str-no-color]]
[clojure.string :as str]))
[lazytest.test-utils :refer [with-out-str-no-color]]))

(defn make-suite []
(binding [*context* nil]
Expand Down

0 comments on commit 2b3d4f2

Please sign in to comment.