(from-ns & nss)Build keyword predicate mathing to any namespace from nss.
Namespaces may be specified as strings, symbols or regex patterns.
Build keyword predicate mathing to any namespace from `nss`. Namespaces may be specified as strings, symbols or regex patterns.
(from-this-ns)Build keyword predicate mathing to keywords only from *ns*.
Build keyword predicate mathing to keywords only from `*ns*`.
(with-yarns yarns & body)Run body with additional yarns attached to the registry. This function known to be slow, intended only for testing/mocking!
Run body with additional yarns attached to the registry. This function known to be slow, intended only for testing/mocking!
(with-yarns-only predicate & body)Run body with some yarns deactivated. Predicate is called with yarn-id (namespaced keyword) for all available yarns in the registry. If predicate returns false yarn is replaced with 'fail always' stub. This function known to be slow, intended only for testing/mocking!
Disable all yarns except from current namespace:
(with-yarns-only (from-this-ns)
@(yank {...} [...]))
Run body with some yarns deactivated.
Predicate is called with yarn-id (namespaced keyword) for all available yarns in the registry.
If predicate returns false yarn is replaced with 'fail always' stub.
This function known to be slow, intended only for testing/mocking!
Disable all yarns except from current namespace:
(with-yarns-only (from-this-ns)
@(yank {...} [...]))
(yank-explain! inputs yarns)(yank-explain! inputs yarns opts)Run knitty.core/yank with tracing enabled, await (synchonously) result
and return nn extra information for debugging and testing.
Result is dictionary with:
yank resulted with no errorRun `knitty.core/yank` with tracing enabled, await (synchonously) result and return nn extra information for debugging and testing. Result is dictionary with: - :ok? boolean, true when `yank` resulted with no error - :result yank* result or thrown exception - :traces list of yank traces - :yanked set of yanked nodes - :failed set of failed nodes (with an exception) - :called set of computed nodes - :leaked set of leaked nodes (started but not completed yet) - :depend graph of direct dependencies (adjacency list, includes unused lazy deps) - :depend* graph of indirect (all) dependencies - :use graph of direct node usages (adjacency list, does not include unused lazy deps) - :use* graph of indirect node usages
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 |