Liking cljdoc? Tell your friends :D

fulcro-spec.provided


arrow?clj

(arrow? sym)
source

assert-no-duplicate-arglist-symbols!clj

(assert-no-duplicate-arglist-symbols! arglist)
source

collect-arglistclj

(collect-arglist arglist)
source

conformed-stubclj

(conformed-stub env sym arglist result)

Creates a stub that validates args/return against guardrails specs. Checks for Malli schema first (via :malli/schema metadata), then Clojure Spec fspec. Falls back to original spec-only behavior if neither is found.

Creates a stub that validates args/return against guardrails specs.
Checks for Malli schema first (via :malli/schema metadata), then Clojure Spec fspec.
Falls back to original spec-only behavior if neither is found.
sourceraw docstring

duplicatesclj

(duplicates coll)
source

emit-mock-fnclj

(emit-mock-fn env mock-name)
source

extract-mocked-symbolsclj

(extract-mocked-symbols forms)

Extract the function symbols being mocked from mock triple forms. Returns a vector of symbols (not necessarily qualified - they're as written in the mock).

Extract the function symbols being mocked from mock triple forms.
Returns a vector of symbols (not necessarily qualified - they're as written in the mock).
sourceraw docstring

literal->gensymclj

(literal->gensym l)
source

param-symclj

(param-sym p)
source

parse-arrow-countclj

(parse-arrow-count sym)

parses how many times the mock/stub should be called with.

  • => implies 1+,
  • =Ax=> implies exactly A times. Provided arrow counts cannot be zero because mocking should not be a negative assertion, but a positive one. IE: verify that what you want to be called is called instead, or that, if necessary, it should throw an error if called.
parses how many times the mock/stub should be called with.
* => implies 1+,
* =Ax=> implies exactly A times.
Provided arrow counts cannot be zero because mocking should
   not be a negative assertion, but a positive one.
IE: verify that what you want to be called is called instead,
   or that, if necessary, it should throw an error if called.
sourceraw docstring

parse-mock-blockclj

(parse-mock-block env conform? {:keys [behavior triples]})
source

parse-mock-tripleclj

(parse-mock-triple env
                   conform?
                   {:as triple :keys [under-mock arrow result behavior]})
source

parse-mocksclj

(parse-mocks env conform? mocks)
source

provided*clj

(provided* env conform-mocks? string forms)
source

spec-only-conformed-stubclj

(spec-only-conformed-stub env sym arglist result)

Original spec-only stub validation (fallback when no guardrails schema).

Original spec-only stub validation (fallback when no guardrails schema).
sourceraw docstring

symbol->anyclj

(symbol->any s)
source

try-stubclj

(try-stub env body)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close