Liking cljdoc? Tell your friends :D

hara.code.unit


arrangeclj

(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))
raw docstring

commentedclj

(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))
raw docstring

importclj

(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?
raw docstring

in-order?clj

(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?))
raw docstring

incompleteclj

(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))
raw docstring

mark-varsclj

(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]]
raw docstring

missingclj

(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))
raw docstring

orphanedclj

(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))
raw docstring

orphaned-metaclj

(orphaned-meta m)

returns true if meta satisfies the orphaned criteria

(orphaned-meta {}) => true

(orphaned-meta {:meta {:adopt true} :ns 'clojure.core :var 'slurp}) => false

(orphaned-meta {:meta {:adopt true} :ns 'clojure.core :var 'NONE}) => true

returns true if meta satisfies the orphaned criteria

(orphaned-meta {}) => true

(orphaned-meta {:meta {:adopt true} :ns 'clojure.core :var 'slurp})
=> false

(orphaned-meta {:meta {:adopt true} :ns 'clojure.core :var 'NONE})
=> true
raw docstring

pedanticclj

(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))
raw docstring

purgeclj

(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?
raw docstring

scaffoldclj

(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))
raw docstring

todosclj

(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))
raw docstring

uncheckedclj

(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))
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close