code.manage.unit.isolate
body-entries
added in 4.1
(body-entries blk row-base)returns all child entries of a fact block, including whitespace
entry-matches-line?
added in 4.1
(entry-matches-line? {:keys [line]} target-lines)checks if an entry spans any of the target lines
example-ranges
added in 4.1
(example-ranges entries)returns body ranges for individual fact examples
fact-body-entries
added in 4.1
(fact-body-entries entry)returns the operator, optional intro, and body entries for a fact
failing-entries
added in 4.1
(failing-entries run-data ns)returns failing run entries for a test namespace
failure-function
added in 4.1
(failure-function entry)returns the preferred function identifier for a failing entry
failure-functions
added in 4.1
(failure-functions entries)returns unique failure identifiers in encounter order
failure-line
added in 4.1
(failure-line entry)normalises a failure line entry into a row number
isolate
added in 4.1
(isolate ns {:keys [run suffix write], :as params} lookup project)copies failing facts from a run report into a new test namespace
(code.manage.unit.isolate/isolate ’xt.lang.spec-base-test {:run “.hara/runs/run-1776913569354.edn” :suffix “-fix” :write false} lookup project)
isolate-fact-string
added in 4.1
(isolate-fact-string entry target-lines)returns a fact string containing only the selected examples
isolate-string
added in 4.1
(isolate-string original target-ns target-lines)returns a test file containing only the selected failing checks
isolate-target-ns
added in 4.1
(isolate-target-ns ns)(isolate-target-ns ns suffix)returns the target namespace for isolated tests
latest-run-file
added in 4.1
(latest-run-file root)returns the most recent .hara/runs/run-*.edn file
parse-run-string
added in 4.1
(parse-run-string s)parses a run report, preserving legacy #error payloads as plain maps
rewrite-ns-form
added in 4.1
(rewrite-ns-form blk target-ns)rewrites the namespace symbol for an ns form
sanitize-run-string
added in 4.1
(sanitize-run-string s)quotes legacy unreadable printed objects so the report can be parsed as EDN
selected-fact-body
added in 4.1
(selected-fact-body entries target-lines intro?)returns a body string for the selected failing examples within a fact
top-level-entries
added in 4.1
(top-level-entries s)returns top level blocks with their line ranges
unwrap-fact-block
added in 4.1
(unwrap-fact-block blk)returns the exact metadata prefix and inner fact block
unwrap-meta-block
added in 4.1
(unwrap-meta-block blk)returns the inner expression for metadata-wrapped blocks