(create-fact meta body)
creates a fact given meta and body
creates a fact given meta and body
(fact desc & body)
top level macro for test definitions
top level macro for test definitions
(fact-eval {:keys [ns id] :as fpkg})
creates the forms in eval mode
creates the forms in eval mode
(fact-eval-current id meta)
helper function for eval
helper function for eval
(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
(fact-prepare-core desc? body meta)
prepares fact for a core form
prepares fact for a core form
(fact-prepare-derived fsource title {:keys [id] :as meta})
prepares fact for a derived form
prepares fact for a derived form
(fact-prepare-link fsource title {:keys [id line column type]})
prepares fact for a linked form
prepares fact for a linked form
(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))
(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
(fact-thunk {:keys [full] :as fpkg})
creates a thunk form
creates a thunk form
(fact:all)
(fact:all ns)
returns all facts in namespace
returns all facts in namespace
(fact:bench)
(fact:bench params & inputs)
runs a small micro bench for the current fact
runs a small micro bench for the current fact
(fact:bench-install params inputs meta)
installer for fact:bench
macro
installer for `fact:bench` macro
(fact:check inputs)
runs a check over a range of values
runs a check over a range of values
(fact:check-install inputs meta)
installer for fact:check
macro
installer for `fact:check` macro
(fact:compile fpkg)
(fact:compile fpkg global)
recompiles fact with a different global
recompiles fact with a different global
(fact:derive desc)
runs a form derived from a previous test
runs a form derived from a previous test
(fact:derive-install desc meta)
installer for fact:derive
macro
installer for `fact:derive` macro
(fact:exec)
(fact:exec id)
(fact:exec ns id)
runs main hook for fact form
runs main hook for fact form
(fact:get)
(fact:get id)
(fact:get ns id)
gets elements of the current fact
gets elements of the current fact
(fact:let args)
runs a form that has binding substitutions
runs a form that has binding substitutions
(fact:let-install args meta)
installer for fact:let
macro
installer for `fact:let` macro
(fact:missing)
(fact:missing ns)
returns all missing facts for a given namespace
returns all missing facts for a given namespace
(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
(fact:setup)
runs setup hook for current fact
runs setup hook for current fact
(fact:setup?)
checks if setup hook has been ran
checks if setup hook has been ran
(fact:symbol)
gets the current fact symbol
gets the current fact symbol
(fact:table header & inputs)
runs a form with tabular value substitutions
runs a form with tabular value substitutions
(fact:table-install header inputs meta)
installer for fact:table
macro
installer for `fact:table` macro
(fact:teardown)
runs teardown hook for current fact
runs teardown hook for current fact
(fact:template desc & body)
adds a template to the file
adds a template to the file
(install-fact meta body)
installs the current fact
installs the current fact
(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}}])
(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)]
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close