(-deftest name-string & body)
The same as -deftest-verbose but will fail the test if there was an exception in non-main thread.
The same as -deftest-verbose but will fail the test if there was an exception in non-main thread.
(-deftest-verbose name-or-meta-name-pair & body)
The same as deftest but name is defined using a string. Name is also added to the test metadata at :verbose-name. Instead of just a name you can also provide a pair: [test-metadata name].
Inspired by: https://gist.github.com/mybuddymichael/4425558
The same as deftest but name is defined using a string. Name is also added to the test metadata at :verbose-name. Instead of just a name you can also provide a pair: [test-metadata name]. Inspired by: https://gist.github.com/mybuddymichael/4425558
(-reset-aux-table)
Create a simple empty table for testing needs.
Create a simple empty table for testing needs.
(-submap? m sub)
Checks whether m contains all entries in sub.
Checks whether m contains all entries in sub.
(debug-time description expr)
Evaluates expr and prints the time it took. Returns the value of expr.
Evaluates expr and prints the time it took. Returns the value of expr.
(defdbtest name-string & body)
The same as -deftest but will reset db
test database before execution.
The same as -deftest but will reset `db` test database before execution.
(elapse f)
Executes the specified function and returns [function-return-value elapsed-msec].
Executes the specified function and returns [function-return-value elapsed-msec].
(with-err-str & body)
Catches err from all threads and returns it as a string.
Catches *err* from all threads and returns it as a string.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close