Liking cljdoc? Tell your friends :D

typed.clj.checker.test-utils


both-sub?cljmacro

(both-sub? s t)

both-subtype?clj

(both-subtype? s t)

caught-top-level-errorscljmacro

(caught-top-level-errors nfn & body)

checkclj

(check & as)

check-optclj

(check-opt opt)

cljcljmacro

(clj & body)

cljscljmacro

(cljs & body)

equal-typescljmacro

(equal-types l r)

equal-types-noparsecljmacro

(equal-types-noparse l r)

eretcljmacro

(eret f)

etycljmacro

(ety f)

extract-error-messagesclj

(extract-error-messages tc-err-res)

is-cfcljmacro

(is-cf & args)

is-cljcljmacro

(is-clj & args)

is-tc-ecljmacro

(is-tc-e & body)

is-tc-errcljmacro

(is-tc-err & body)

Returns the result of the tc-err call

Returns the result of the tc-err call
raw docstring

is-tc-err-messagescljmacro

(is-tc-err-messages & body)

Performs an is-tc-err and returns error messages

Performs an is-tc-err and returns error messages
raw docstring

is-with-aliasescljmacro

(is-with-aliases tst)

should-not-reflectcljmacro

(should-not-reflect form)

Turn on all warning flags, and test that reflection does not occur (as identified by messages to err).

Turn on all warning flags, and test that reflection does not occur
(as identified by messages to *err*).
raw docstring

sub?cljmacro

(sub? s t)

sub?-qcljmacro

(sub?-q s t)

subtype?clj

(subtype? s t)

tccljmacro

(tc form)

tc-common*clj

(tc-common* frm
            {{:keys [syn provided?]} :expected-syntax
             :keys [expected-ret requires ns-meta check-config]
             :as opt})

tc-ecljmacro

(tc-e frm & opts)

Type check an an expression in namespace that :refer's all of clojure.core.typed (aliased to t) and aliases clojure.core to core.

Takes one form and then options, and returns true if the form checks with the expected input/output types according to the provided options.

The first form in the options can be a static type syntax scoped in the new namespace. This is disambiguated with a call to keyword? (literal keywords aren't valid type syntax).

eg. (tc-e (+ 1 1) Num) ;=> Num

Keyword Options:

:expected-ret An expected ret, evaluated in the current namespace (not the new one that refers c.c.t). Cannot be provided in combination with the implicit first option as a type, as above. :ret Check the return TCResult of this expression against this ret. Evaluated in the current namespace. :ns-meta Map to use as ns metadata. :check-config Map specifying check-config.

Type check an an expression in namespace that :refer's
all of clojure.core.typed (aliased to t) and aliases clojure.core
to core.

Takes one form and then options, and returns true if the form checks
with the expected input/output types according to the provided options.

The first form in the options can be a static type syntax scoped
in the new namespace. This is disambiguated with a call to keyword?
(literal keywords aren't valid type syntax).

eg. (tc-e (+ 1 1) Num)
    ;=> Num

Keyword Options:

  :expected-ret An expected ret, evaluated in the current namespace (not the new
                one that refers c.c.t). Cannot be provided in combination with the implicit
                first option as a type, as above.
  :ret          Check the return TCResult of this expression against this ret. Evaluated
                in the current namespace.
  :ns-meta      Map to use as ns metadata.
  :check-config Map specifying check-config.
raw docstring

tc-errcljmacro

(tc-err frm & opts)

tc-tcljmacro

(tc-t form)

throws-tc-error?cljmacro

(throws-tc-error? & body)

with-err-print-writercljmacro

(with-err-print-writer & body)

Evaluate with err pointing to a temporary PrintWriter, and return err contents as a string.

Evaluate with err pointing to a temporary PrintWriter, and
return err contents as a string.
raw docstring

with-err-string-writercljmacro

(with-err-string-writer & body)

Evaluate with err pointing to a temporary StringWriter, and return err contents as a string.

Evaluate with err pointing to a temporary StringWriter, and
return err contents as a string.
raw docstring

with-typed-loadcljmacro

(with-typed-load & body)

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

× close