Liking cljdoc? Tell your friends :D

volley.paths

Which files and namespaces belong to a suite: test paths and :ns-patterns, as Kaocha's kaocha.load decides. Kept apart from volley.discover, which parses files, so that planning from namespace infos already at hand does not load the parser.

Which files and namespaces belong to a suite: test paths and
`:ns-patterns`, as Kaocha's `kaocha.load` decides. Kept apart from
`volley.discover`, which parses files, so that planning from namespace
infos already at hand does not load the parser.
raw docstring

mark-testsclj

(mark-tests suites infos)

Set :test? on each info: true when it is a member of any suite in suites (see suite-member?).

Set `:test?` on each info: true when it is a member of any suite in
`suites` (see `suite-member?`).
sourceraw docstring

ns-match?clj

(ns-match? suite ns-sym)

Mirrors kaocha.load/ns-match?: any of the suite's :ns-patterns regexes is found (re-find) in the namespace name.

Mirrors `kaocha.load/ns-match?`: any of the suite's `:ns-patterns` regexes
is found (`re-find`) in the namespace name.
sourceraw docstring

suite-member?clj

(suite-member? suite {:keys [file ns error]})

True when info belongs to the suite's test namespaces: its file is under a test path and its namespace matches an ns-pattern. Like Kaocha, a file whose ns form cannot be read counts as a member, so the failure is reported rather than hidden. Files without an ns form never do.

True when `info` belongs to the suite's test namespaces: its file is under
a test path and its namespace matches an ns-pattern. Like Kaocha, a file
whose ns form cannot be read counts as a member, so the failure is
reported rather than hidden. Files without an ns form never do.
sourceraw docstring

test-file?clj

(test-file? suite path)

True when path is a Clojure source file (.clj or .cljc) under one of the suite's test paths. suite is a normalized config suite.

True when `path` is a Clojure source file (.clj or .cljc) under one of the
suite's test paths. `suite` is a normalized config suite.
sourceraw docstring

under-path?clj

(under-path? dir file)

True when file is inside directory dir (both relative paths).

True when `file` is inside directory `dir` (both relative paths).
sourceraw docstring

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