Liking cljdoc? Tell your friends :D

code.test.base.runtime


*accumulator*clj


*errors*clj


*eval-check*clj


*eval-current-ns*clj


*eval-fact*clj


*eval-global*clj


*eval-meta*clj


*eval-mode*clj


*eval-replace*clj


*registry*clj


*root*clj


*run-id*clj


*settings*clj


(add-link link)
(add-link ns link)

add ns link

add ns link
raw docstring

all-factsclj

(all-facts)
(all-facts ns)

retrieves a list of all the facts in a namespace

(keys (all-facts))

retrieves a list of all the facts in a namespace

(keys (all-facts))
raw docstring

(clear-links)
(clear-links ns)

clear ns links

clear ns links
raw docstring

exec-slimclj

(exec-slim fpkg)

executes the fact slim (only the body

executes the fact slim (only the body
raw docstring

exec-thunkclj

(exec-thunk fpkg)

executes the fact thunk (only the check

executes the fact thunk (only the check
raw docstring

fact-idclj

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

returns an id from fact data

(fact-id {:refer 'code.test.base.runtime/fact-id}) => 'test-code_test_base_runtime__fact_id

returns an id from fact data

(fact-id {:refer 'code.test.base.runtime/fact-id})
=> 'test-code_test_base_runtime__fact_id
raw docstring

find-factclj

(find-fact meta)
(find-fact ns {:keys [line source]})

the fact that is associated with a given line

(:id (find-fact {:line (h/code-line)})) => 'test-code_test_base_runtime__find_fact

the fact that is associated with a given line

(:id (find-fact {:line (h/code-line)}))
=> 'test-code_test_base_runtime__find_fact
raw docstring

get-factclj

(get-fact id)
(get-fact ns id)
(get-fact ns id k & more)

gets a fact

(get-fact (fsym) :refer) => 'code.test.base.runtime/purge-all

gets a fact

(get-fact (fsym) :refer)
=> 'code.test.base.runtime/purge-all
raw docstring

get-flagclj

(get-flag id flag)
(get-flag ns id flag)

checks if the setup flag has been set

(get-flag (fsym) :setup)

checks if the setup flag has been set

(get-flag (fsym) :setup)
raw docstring

get-globalclj

(get-global)
(get-global ns)
(get-global ns k & more)

gets the global settings for namespace

(get-global)

gets the global settings for namespace

(get-global)
raw docstring

list-factsclj

(list-facts)
(list-facts ns)

lists all facts in current namespace

(first (list-facts)) => 'test-code_test_base_runtime__purge_all

lists all facts in current namespace

(first (list-facts))
=> 'test-code_test_base_runtime__purge_all
raw docstring

(list-links)
(list-links ns)

lists ns links

lists ns links
raw docstring

no-dotsclj

(no-dots s)

removes dots and slash from the string

removes dots and slash from the string
raw docstring

parse-argsclj

(parse-args ns id arg more)

helper function for variable args

helper function for variable args
raw docstring

purge-allclj

(purge-all)
(purge-all ns)

purges all facts from namespace

purges all facts from namespace
raw docstring

purge-factsclj

(purge-facts)
(purge-facts ns)

purges all facts in the namespace (for reload)

(purge-facts) (list-facts) => []

purges all facts in the namespace (for reload)

(purge-facts)
(list-facts)
=> []
raw docstring

remove-factclj

(remove-fact id)
(remove-fact ns id)

removes a fact from namespace

removes a fact from namespace
raw docstring

(remove-link link)
(remove-link ns link)

remove ms link

remove ms link
raw docstring

run-opclj

(run-op {:keys [line source] :as meta} op & args)

common runtime functions for easy access

(run-op {:line (h/code-line)} :self)

common runtime functions for easy access

(run-op {:line (h/code-line)}
        :self)
raw docstring

set-factclj

(set-fact id data)
(set-fact ns id data)

sets the entire data on a fact

sets the entire data on a fact
raw docstring

set-flagclj

(set-flag id flag val)
(set-flag ns id flag val)

sets the setup flag

(set-flag (fsym) :setup true)

sets the setup flag

(set-flag (fsym) :setup true)
raw docstring

set-globalclj

(set-global m)
(set-global ns m)

sets the global settings for namespace

(set-global {:check {:setup '[(prn "hello")]}}) => '{:check {:setup [(prn "hello")]}}

sets the global settings for namespace

(set-global {:check {:setup '[(prn "hello")]}})
=> '{:check {:setup [(prn "hello")]}}
raw docstring

set-in-factclj

(set-in-fact id ks data)
(set-in-fact ns id ks data)

sets the property on a fact

(set-in-fact (fsym) [:function :other] (fn []))

sets the property on a fact

(set-in-fact (fsym) [:function :other] (fn []))
raw docstring

setup-factclj

(setup-fact id)
(setup-fact ns id)

runs the setup hook

(setup-fact (:id (find-fact {:line (h/code-line)}))) => 6

runs the setup hook

(setup-fact (:id (find-fact {:line (h/code-line)})))
=> 6
raw docstring

teardown-factclj

(teardown-fact id)
(teardown-fact ns id)

runs the teardown hook

(teardown-fact (:id (find-fact {:line (h/code-line)}))) => 6

runs the teardown hook

(teardown-fact (:id (find-fact {:line (h/code-line)})))
=> 6
raw docstring

update-factclj

(update-fact ns id f & args)

updates a fact given a function

updates a fact given a function
raw docstring

update-globalclj

(update-global f)
(update-global ns f)

updates global data

updates global data
raw docstring

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

× close