Liking cljdoc? Tell your friends :D

eg.platform


->cljclj/s

(->clj datum)
source

cljs-env?clj/s

(cljs-env? env)

Take the &env from a macro, and tell whether we are expanding into cljs. Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing

Take the &env from a macro, and tell whether we are expanding into cljs.
Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing
sourceraw docstring

cross-throwclj/s

(cross-throw msg)
source

deftestclj/smacro

(deftest & args)
Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing
source (clj)source (cljs)raw docstring

do-equal-reportclj/s

(do-equal-report equal expected [f & params :as actual])

Support customised spec examples in a test result and call report.

Support customised spec examples in a test result and call report.
sourceraw docstring

do-reportclj/s≠

(do-report m)
clj

Add file and line information to a test result and call report. If you are writing a custom assert-expr method, call this function to pass test results to report. Modified clj.test fn to convert :fail-spec into :fail, in order to get file:line. Source: https://github.com/clojure/clojure/blob/master/src/clj/clojure/test.clj

Add file and line information to a test result and call report.
If you are writing a custom assert-expr method, call this function
to pass test results to report.
Modified clj.test fn to convert :fail-spec into :fail, in order to get file:line.
Source: https://github.com/clojure/clojure/blob/master/src/clj/clojure/test.clj
cljs

Add file and line information to a test result and call report. If you are writing a custom assert-expr method, call this function to pass test results to report. Source: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs

Add file and line information to a test result and call report.
If you are writing a custom assert-expr method, call this function to pass test results to report.
Source: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs
source (clj)source (cljs)raw docstring

do-spec-reportclj/s

(do-spec-report [f spec-kw example] expect-valid?)

Support customised spec examples in a test result and call report.

Support customised spec examples in a test result and call report.
sourceraw docstring

equal?clj/s

(equal? & args)

Create alias for '=, so that we don't override or be overriden by libraries dispatching on '= for assert-expr, and to apply our custom assert-expr only to function tests, i.e., not expression tests.

Create alias for '=, so that we don't override or be overriden by libraries dispatching on '= for assert-expr, 
and to apply our custom assert-expr only to function tests, i.e., not expression tests.
sourceraw docstring

explain-strclj/s

(explain-str & args)
source

file-and-linecljs

(file-and-line exception depth)

Extract file, line, and maybe column number information from stracktrace. Source: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs

Extract file, line, and maybe column number information from stracktrace.
Source: https://github.com/clojure/clojurescript/blob/master/src/main/cljs/cljs/test.cljs
sourceraw docstring

if-cljsclj/smacro

(if-cljs then else)

Return then if we are generating cljs code and else for Clojure code. Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing

Return then if we are generating cljs code and else for Clojure code.
Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing
source (clj)source (cljs)raw docstring

invalid-spec?clj/s

(invalid-spec? & args)

Complement of valid-spec? to able a distinct dispatch fn arg in clojure.test/assert-expr.

Complement of valid-spec? to able a distinct dispatch fn arg in clojure.test/assert-expr.
sourceraw docstring

isclj/smacro

(is & args)
Source: http://blog.nberger.com.ar/blog/2015/09/18/more-portable-complex-macro-musing
source (clj)source (cljs)raw docstring

rm-cljsjs-st-fname-prefix-fluffclj/s

(rm-cljsjs-st-fname-prefix-fluff fname)

Remove unnecessary (for reports) prefix found in a filename of a cljs js stacktrace.

Remove unnecessary (for reports) prefix found in a filename of a cljs js stacktrace.
sourceraw docstring

testingclj/smacro

(testing & args)
source (clj)source (cljs)

valid-spec?clj/s

(valid-spec? & args)

Solves a clojure.spec.alpha/valid? resolve issue in cljs JVM. Check client code for use cases.

Solves a clojure.spec.alpha/valid? resolve issue in cljs JVM.
Check client code for use cases.
sourceraw docstring

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

× close