Liking cljdoc? Tell your friends :D

unit.utils


-close-poolclj

(-close-pool)
source

-datasource-optionsclj

source

-deftestcljmacro

(-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.
sourceraw docstring

-deftest-verbosecljmacro

(-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
sourceraw docstring

-exec-db-commandclj

(-exec-db-command command)
source

-reset-aux-tableclj

(-reset-aux-table)

Create a simple empty table for testing needs.

Create a simple empty table for testing needs.
sourceraw docstring

-reset-databaseclj

(-reset-database)
source

-reset-tablesclj

(-reset-tables)
source

-submap?clj

(-submap? m sub)

Checks whether m contains all entries in sub.

Checks whether m contains all entries in sub.
sourceraw docstring

-test-with-thread-exception-detectionclj

(-test-with-thread-exception-detection f)
source

ack-done?clj

(ack-done? ack)
source

ack-failed?clj

(ack-failed? [_exception failed-job :as _ack])
source

db-nameclj

source

debug-timecljmacro

(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.
sourceraw docstring

defdbtestcljmacro

(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.
sourceraw docstring

dsclj

source

elapseclj

(elapse f)

Executes the specified function and returns [function-return-value elapsed-msec].

Executes the specified function and returns [function-return-value elapsed-msec].
sourceraw docstring

insert-aux-data!clj

(insert-aux-data! jdbc-conn data)
source

is-aux-data-committedclj

(is-aux-data-committed jdbc-conn data)
source

is-aux-data-emptyclj

(is-aux-data-empty jdbc-conn)
source

job-context?clj

(job-context? ctx)
source

sleep-politelyclj

(sleep-politely msec)
source

with-databaseclj

(with-database f)

Fixture.

Fixture.
sourceraw docstring

with-err-strcljmacro

(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.
sourceraw docstring

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

× close