Liking cljdoc? Tell your friends :D

hara.test.common


*accumulator*clj


*desc*clj


*errors*clj


*id*clj


*meta*clj


*path*clj


*print*clj


*settings*clj


->dataclj

(->data res)

coerces a checker result into data

(->data 1) => 1

(->data (result {:data 1})) => 1

coerces a checker result into data

(->data 1) => 1

(->data (result {:data 1}))
=> 1
raw docstring

checkerclj

(checker m)

creates a 'hara.test.common.Checker' object

(checker {:tag :anything :fn (fn [x] true)}) => hara.test.common.Checker

creates a 'hara.test.common.Checker' object

(checker {:tag :anything :fn (fn [x] true)})
=> hara.test.common.Checker
raw docstring

checker?clj

(checker? x)

checks to see if a datastructure is a 'hara.test.common.Checker'

(checker? (checker {:tag :anything :fn (fn [x] true)})) => true

checks to see if a datastructure is a 'hara.test.common.Checker'

(checker? (checker {:tag :anything :fn (fn [x] true)}))
=> true
raw docstring

evaluateclj

(evaluate form)

converts a form to a result

(->> (evaluate '(+ 1 2 3)) (into {})) => {:type :success, :data 6, :form '(+ 1 2 3), :from :evaluate}

converts a form to a result

(->> (evaluate '(+ 1 2 3))
     (into {}))
=> {:type :success, :data 6, :form '(+ 1 2 3), :from :evaluate}
raw docstring

function-stringclj

(function-string func)

returns the string representation of a function

(function-string every?) => "every?"

(function-string reset!) => "reset!"

returns the string representation of a function

(function-string every?) => "every?"

(function-string reset!) => "reset!"
raw docstring

opclj

(op m)

creates an 'op' for evaluation

(op {:type :form :form '(+ 1 1)}) => hara.test.common.Op

creates an 'op' for evaluation

(op {:type :form :form '(+ 1 1)})
=> hara.test.common.Op
raw docstring

op?clj

(op? x)

checks to see if a datastructure is an 'Op'

(op? (op {:type :form :form '(+ 1 1)})) => true

checks to see if a datastructure is an 'Op'

(op? (op {:type :form :form '(+ 1 1)}))
=> true
raw docstring

resultclj

(result m)

creates a 'hara.test.common.Result' object

(result {:type :success :data true}) => hara.test.common.Result

creates a 'hara.test.common.Result' object

(result {:type :success :data true})
=> hara.test.common.Result
raw docstring

result?clj

(result? x)

checks to see if a datastructure is a 'hara.test.common.Result'

(result? (result {:type :success :data true})) => true

checks to see if a datastructure is a 'hara.test.common.Result'

(result? (result {:type :success :data true}))
=> true
raw docstring

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

× close