(move-var from-ns to-ns var-name)
Moves a var from one ns to another. Also copies all metadata over to the new var but without the :ns key which will be different now.
Moves a var from one ns to another. Also copies all metadata over to the new var but without the :ns key which will be different now.
(ns->test-ns ns)
Given a namespace, returns the -test suffixed version of the same namespace.
Given a namespace, returns the -test suffixed version of the same namespace.
(process-ns!)
(process-ns! ns)
Runs all vars in a ns through process-var! When given no arguments it will process the current ns.
Runs all vars in a ns through process-var! When given no arguments it will process the current ns.
(process-var! var)
The vars examples will be added to the docstring and clojure.test/deftest calls will be created for you within the current namespace. You can use :exemplary.core/examples with a list/vector of examples or :exemplary.core/example with a single example.
You must quote your code to ensure it doesn't execute immidiately. So you will have something like one of these in your function params which come after the doc string:
(defn foo "Some info" {:exemplary.core/example '(= 10 (+ 5 5))} [] :result)
(defn bar "Some info" {:exemplary.core/examples '((= 10 (+ 5 5)) (pos? 3))} [] :result)
The vars examples will be added to the docstring and clojure.test/deftest calls will be created for you within the current namespace. You can use :exemplary.core/examples with a list/vector of examples or :exemplary.core/example with a single example. You must quote your code to ensure it doesn't execute immidiately. So you will have something like one of these in your function params which come after the doc string: (defn foo "Some info" {:exemplary.core/example '(= 10 (+ 5 5))} [] :result) (defn bar "Some info" {:exemplary.core/examples '((= 10 (+ 5 5)) (pos? 3))} [] :result)
(test-ns? ns)
Given a namespace, returns true if it ends in -test.
Given a namespace, returns true if it ends in -test.
(var->test-name-symbol var)
Takes a var and returns a simple-symbol to be used in a deftest name.
Examples: (= (quote var->test-name-symbol-exemplary-test) (var->test-name-symbol (var var->test-name-symbol)))
Takes a var and returns a simple-symbol to be used in a deftest name. Examples: (= (quote var->test-name-symbol-exemplary-test) (var->test-name-symbol (var var->test-name-symbol)))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close