Liking cljdoc? Tell your friends :D

code.test.compile


*compile-desc*clj


*compile-meta*clj


+arrows+clj


=>clj


arrow?clj

(arrow? obj)

checks if form is an arrow

checks if form is an arrow
raw docstring

create-factclj

(create-fact meta body)

creates a fact given meta and body

creates a fact given meta and body
raw docstring

factcljmacro

(fact desc & body)

top level macro for test definitions

top level macro for test definitions
raw docstring

fact-allowed?clj


fact-evalclj

(fact-eval {:keys [ns id] :as fpkg})

creates the forms in eval mode

creates the forms in eval mode
raw docstring

fact-eval-currentclj

(fact-eval-current id meta)

helper function for eval

helper function for eval
raw docstring

fact-idclj

(fact-id {:keys [id refer] :as m} desc)

creates an id from fact data

(fact-id {} "hello there") => 'test-hello-there

creates an id from fact data

(fact-id {} "hello there")
=> 'test-hello-there
raw docstring

fact-prepare-coreclj

(fact-prepare-core desc? body meta)

prepares fact for a core form

prepares fact for a core form
raw docstring

fact-prepare-derivedclj

(fact-prepare-derived fsource title {:keys [id] :as meta})

prepares fact for a derived form

prepares fact for a derived form
raw docstring

(fact-prepare-link fsource title {:keys [id line column type]})

prepares fact for a linked form

prepares fact for a linked form
raw docstring

fact-prepare-metaclj

(fact-prepare-meta id meta desc body)

parses and converts fact to symbols

(fact-prepare-meta 'test-hello {} "hello" '(1 => 1))

parses and converts fact to symbols

(fact-prepare-meta 'test-hello
                   {}
                   "hello"
                  '(1 => 1))
raw docstring

fact-skip?clj

(fact-skip? x)

checks if form should be skipped

(fact-skip? '(fact:component)) => true

checks if form should be skipped

(fact-skip? '(fact:component))
=> true
raw docstring

fact-thunkclj

(fact-thunk {:keys [full] :as fpkg})

creates a thunk form

creates a thunk form
raw docstring

fact:allcljmacro

(fact:all)
(fact:all ns)

returns all facts in namespace

returns all facts in namespace
raw docstring

fact:benchcljmacro

(fact:bench)
(fact:bench params & inputs)

runs a small micro bench for the current fact

runs a small micro bench for the current fact
raw docstring

fact:bench-installclj

(fact:bench-install params inputs meta)

installer for fact:bench macro

installer for `fact:bench` macro
raw docstring

fact:checkcljmacro

(fact:check inputs)

runs a check over a range of values

runs a check over a range of values
raw docstring

fact:check-installclj

(fact:check-install inputs meta)

installer for fact:check macro

installer for `fact:check` macro
raw docstring

fact:compileclj

(fact:compile fpkg)
(fact:compile fpkg global)

recompiles fact with a different global

recompiles fact with a different global
raw docstring

fact:derivecljmacro

(fact:derive desc)

runs a form derived from a previous test

runs a form derived from a previous test
raw docstring

fact:derive-installclj

(fact:derive-install desc meta)

installer for fact:derive macro

installer for `fact:derive` macro
raw docstring

fact:execcljmacro

(fact:exec)
(fact:exec id)
(fact:exec ns id)

runs main hook for fact form

runs main hook for fact form
raw docstring

fact:getcljmacro

(fact:get)
(fact:get id)
(fact:get ns id)

gets elements of the current fact

gets elements of the current fact
raw docstring

fact:letcljmacro

(fact:let args)

runs a form that has binding substitutions

runs a form that has binding substitutions
raw docstring

fact:let-installclj

(fact:let-install args meta)

installer for fact:let macro

installer for `fact:let` macro
raw docstring

fact:listclj

(fact:list)

lists all facts in namespace

lists all facts in namespace
raw docstring

fact:missingclj

(fact:missing)
(fact:missing ns)

returns all missing facts for a given namespace

returns all missing facts for a given namespace
raw docstring

fact:purgeclj

(fact:purge)

purges all facts in namespace

purges all facts in namespace
raw docstring

fact:removecljmacro

(fact:remove)

removes the current fact

removes the current fact
raw docstring

fact:rerunclj

(fact:rerun facts)
(fact:rerun facts filters)
(fact:rerun facts filters global)

reruns all facts along with filter and compile options

reruns all facts along with filter and compile options
raw docstring

fact:setupcljmacro

(fact:setup)

runs setup hook for current fact

runs setup hook for current fact
raw docstring

fact:setup?cljmacro

(fact:setup?)

checks if setup hook has been ran

checks if setup hook has been ran
raw docstring

fact:symbolcljmacro

(fact:symbol)

gets the current fact symbol

gets the current fact symbol
raw docstring

fact:tablecljmacro

(fact:table header & inputs)

runs a form with tabular value substitutions

runs a form with tabular value substitutions
raw docstring

fact:table-installclj

(fact:table-install header inputs meta)

installer for fact:table macro

installer for `fact:table` macro
raw docstring

fact:teardowncljmacro

(fact:teardown)

runs teardown hook for current fact

runs teardown hook for current fact
raw docstring

fact:templatecljmacro

(fact:template desc & body)

adds a template to the file

adds a template to the file
raw docstring

install-factclj

(install-fact meta body)

installs the current fact

installs the current fact
raw docstring

splitclj

(split body)
(split [x y z & more :as arr] out)

creates a sequence of pairs from a loose sequence (split '[(def a 1) (+ a 3) => 5]) (contains-in '[{:type :form, :meta {:line 8, :column 12}, :form '(def a 1)} {:type :test-equal, :meta {:line 9, :column 12}, :input {:form '(+ a 3)}, :output {:form 5}}])

creates a sequence of pairs from a loose sequence
(split '[(def a 1)
         (+ a 3)
         => 5])
(contains-in '[{:type :form,
                :meta {:line 8, :column 12},
                :form '(def a 1)}
              {:type :test-equal,
                :meta {:line 9, :column 12},
                :input  {:form '(+ a 3)},
                :output {:form 5}}])
raw docstring

stripclj

(strip body)
(strip [x y z & more :as arr] out)

removes all checks in the function

(strip '[(def a 1) (+ a 3) => 5]) => '[(def a 1) (+ a 3)]

removes all checks in the function

(strip '[(def a 1)
         (+ a 3)
         => 5])
=> '[(def a 1) (+ a 3)]
raw docstring

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

× close