(->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(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(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(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}(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!"
(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(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(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(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}))
=> truecljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |