Generate test code from parsed RCT data.
Generate test code from parsed RCT data.
(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.
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.
(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.
Return a read-string'd expectation form from an expectation string.
Return a read-string'd expectation form from an expectation string.
(throw-bad-expectation-string {:keys [test-sexpr expectation-string location]
:as data})
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close