(arrange ns params lookup project)
arranges the test code to be in the same order as the source code
(project/in-context (arrange))
arranges the test code to be in the same order as the source code (project/in-context (arrange))
(commented ns params lookup project)
returns tests that are in a comment block
(project/in-context (commented))
returns tests that are in a comment block (project/in-context (commented))
(create-tests ns params lookup project)
scaffolds and arranges the test file
(project/in-context (create-tests))
scaffolds and arranges the test file (project/in-context (create-tests))
(import ns params lookup project)
imports unit tests as docstrings
(project/in-context (import {:print {:function true}})) => map?
imports unit tests as docstrings (project/in-context (import {:print {:function true}})) => map?
(in-order? ns params lookup project)
determines if the test code is in the same order as the source code
(project/in-context (in-order?))
determines if the test code is in the same order as the source code (project/in-context (in-order?))
(incomplete ns params lookup project)
returns functions with todos all missing tests
(project/in-context (incomplete))
returns functions with todos all missing tests (project/in-context (incomplete))
(mark-vars vars comp-vars)
captures changed vars in a set
(mark-vars '[a1 a2 a3 a4 a5] '[a1 a4 a3 a2 a5]) => '[2 [a1 #{a2} #{a3} a4 a5]]
captures changed vars in a set (mark-vars '[a1 a2 a3 a4 a5] '[a1 a4 a3 a2 a5]) => '[2 [a1 #{a2} #{a3} a4 a5]]
(missing ns params lookup project)
returns all functions missing unit tests
(project/in-context (missing))
returns all functions missing unit tests (project/in-context (missing))
(orphaned ns params lookup project)
returns unit tests that do not have an associated function
(project/in-context (orphaned))
returns unit tests that do not have an associated function (project/in-context (orphaned))
(orphaned-meta params m)
returns true if meta satisfies the orphaned criteria
(orphaned-meta {} {}) => false
(orphaned-meta {:strict true} {:meta {:adopt true} :ns 'clojure.core :var 'slurp}) => true
(orphaned-meta {:strict true} {:meta {:adopt true} :ns 'clojure.core :var 'NONE}) => false
returns true if meta satisfies the orphaned criteria (orphaned-meta {} {}) => false (orphaned-meta {:strict true} {:meta {:adopt true} :ns 'clojure.core :var 'slurp}) => true (orphaned-meta {:strict true} {:meta {:adopt true} :ns 'clojure.core :var 'NONE}) => false
(pedantic ns params lookup project)
returns all probable improvements on tests
(project/in-context (pedantic))
returns all probable improvements on tests (project/in-context (pedantic))
(purge ns params lookup project)
purge docstrings and meta from file
(project/in-context (purge {:print {:function true}})) => map?
purge docstrings and meta from file (project/in-context (purge {:print {:function true}})) => map?
(scaffold ns {:keys [write print] :as params} lookup project)
creates a set of tests for a given source
(project/in-context (scaffold))
creates a set of tests for a given source (project/in-context (scaffold))
(todos ns params lookup project)
returns all unit tests with TODOs
(project/in-context (todos))
returns all unit tests with TODOs (project/in-context (todos))
(unchecked ns params lookup project)
returns tests that does not contain a =>
(project/in-context (unchecked))
returns tests that does not contain a `=>` (project/in-context (unchecked))
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close