Liking cljdoc? Tell your friends :D

com.mjdowney.rich-comment-tests.emit-tests

Generate test code from parsed RCT data.

Generate test code from parsed RCT data.
raw docstring

-*file*cljmacro

(-*file*)
source

?encloseclj

(?enclose enclosing-form sexpr)
source

elide-ellipses-in-expectation-stringclj

(elide-ellipses-in-expectation-string expectation-string)

Allow writing "..." before end brackets / parens in maps, vectors, and lists.

Take a string which includes such ellipses and remove them.

Allow writing "..." before end brackets / parens in maps, vectors, and
lists.

Take a string which includes such ellipses and remove them.
sourceraw docstring

emit-assertioncljmultimethod

Build test assertion code given the rct data and an expectation-form, which is a read-string'd version of expectation-string.

Build test assertion code given the rct data and an expectation-form, which
is a `read-string`'d version of expectation-string.
sourceraw docstring

emit-test-formclj

(emit-test-form {:keys [context-strings test-sexpr location] :as data})

Take parsed rct data and emit test code compatible with clojure.test.

Take parsed rct data and emit test code compatible with clojure.test.
sourceraw docstring

read-expectation-formcljmultimethod

Return a read-string'd expectation form from an expectation string.

Return a read-string'd expectation form from an expectation string.
sourceraw docstring

throw-bad-expectation-stringclj

(throw-bad-expectation-string
  {:keys [context-strings test-sexpr expectation-string location] :as data})
source

throw-evaluation-errorclj

(throw-evaluation-error test-form line-number file cause)
source

try-bind-repl-varsclj

(try-bind-repl-vars form line-number file)

Write code which tries to evaluate form, and binds *1 *2 *3 and *e appropriately.

Write code which tries to evaluate `form`, and binds *1 *2 *3 and *e
appropriately.
sourceraw docstring

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

× close