Reflect on JVM, generate tests, capture reference, emit cljc.
Reflect on JVM, generate tests, capture reference, emit cljc.
(arg-type arg-name ns-name)Infer value type from tag metadata, then arg name, then namespace context.
Infer value type from tag metadata, then arg name, then namespace context.
(effective-type arg ns-name)Get the effective type for an arg: tag metadata first, then name-based inference.
Get the effective type for an arg: tag metadata first, then name-based inference.
(gen-tests sym var-meta ns-name)Generate tests for a single var. Returns seq of {:it :eval} maps.
Generate tests for a single var. Returns seq of {:it :eval} maps.
Types where nil/empty are meaningful inputs (not just error-producing).
Types where nil/empty are meaningful inputs (not just error-producing).
Vars that can't be tested with simple expression eval.
Vars that can't be tested with simple expression eval.
Map JVM type hints to our value types. nil = untestable (skip the var).
Map JVM type hints to our value types. nil = untestable (skip the var).
(tag-type arg)Get value type from arglist tag metadata. Returns :skip for untestable types.
Get value type from arglist tag metadata. Returns :skip for untestable types.
(test-values-for arg ns-name)Generate test value sets for an arg: [{:label suffix :val string}].
Generate test value sets for an arg: [{:label suffix :val string}].
cljdoc 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 |