Result-file naming, filesystem lifecycle, and EDN sanitization for the CLI.
Result-file naming, filesystem lifecycle, and EDN sanitization for the CLI.
(concrete-var-backed-entry? entry)True when a canonical entry is attributable to a concrete test var.
True when a canonical entry is attributable to a concrete test var.
(concrete-var-symbol? x)True when x is a concrete namespace-qualified var symbol.
True when x is a concrete namespace-qualified var symbol.
(edn-readable-data value)Recursively coerce data into values readable by clojure.edn/read-string.
EDN scalar leaves pass through. Throwables retain class/message/stacktrace, common collection types recurse, arrays/iterables become vectors, and other objects become maps with class and pr-str detail.
Recursively coerce data into values readable by clojure.edn/read-string. EDN scalar leaves pass through. Throwables retain class/message/stacktrace, common collection types recurse, arrays/iterables become vectors, and other objects become maps with class and pr-str detail.
(encode-file-segment segment)Encode a namespace or var-name segment for a deterministic result filename.
Encode a namespace or var-name segment for a deterministic result filename.
(failure-entry? entry)True when a canonical result entry should be written to a result file.
True when a canonical result entry should be written to a result file.
(prepare-results-dir! io-boundary)Clear and recreate the CLI results directory for a run.
Clear and recreate the CLI results directory for a run.
(result-file-assignments entries)Return failing/erroring entries with deterministic result-file names.
Var-backed filenames keep the existing namespace-prefixed shape. Synthetic entries use per-status suite-level names with deterministic collision suffixes for file paths when needed.
Return failing/erroring entries with deterministic result-file names. Var-backed filenames keep the existing namespace-prefixed shape. Synthetic entries use per-status suite-level names with deterministic collision suffixes for file paths when needed.
(result-file-name entry)Return the namespace-prefixed result EDN filename for a var-backed entry.
Return the namespace-prefixed result EDN filename for a var-backed entry.
(results-dir {:keys [cwd]})Return the .scry-results directory for an IO boundary map containing :cwd.
Return the .scry-results directory for an IO boundary map containing :cwd.
(synthetic-display-label entry token)Return a human progress label for a synthetic canonical entry.
Return a human progress label for a synthetic canonical entry.
(synthetic-token status ordinal)Return a synthetic suite-level display token for status and ordinal.
Return a synthetic suite-level display token for status and ordinal.
(write-result-files! dir entries)Write readable EDN result files for failing/erroring canonical entries.
Returns a vector of written file paths.
Write readable EDN result files for failing/erroring canonical entries. Returns a vector of written file paths.
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 |