✔ isRunId accepts the run id shape and nothing else (0.826464ms)
✔ a missing data root or runs directory lists nothing (1.226358ms)
✔ runs as a regular file lists nothing, as before (0.495671ms)
✔ listRunIds keeps r- names only, sorted oldest first (0.639232ms)
✔ listRunRecords returns each result, or null for an incomplete or unreadable one (1.67933ms)
✔ readRunRecord returns documents and artifacts in directory order (0.869696ms)
✔ readRunRecord is null for a missing run, a dangling link or a file (0.604066ms)
✔ readRunRecord and readRunDocument refuse an invalid run id before touching the disk (0.58883ms)
✔ readRunDocument reads only the three run documents (0.455511ms)
✔ a link inside the data root is followed (0.766729ms)
✔ a data root that is itself a link is trusted as configured (0.494134ms)
✔ a run directory linked out of the data root is never read (0.522852ms)
✔ a document linked out of the data root reads as null (0.827591ms)
✔ a runs directory linked out of the data root refuses (0.469585ms)
✔ a relative link that climbs out of the data root refuses (0.370757ms)
✔ a sibling whose name starts with the data root's name is outside it (0.437598ms)
✔ a link loop refuses instead of reading as missing (0.517778ms)
✔ an unreadable runs directory refuses instead of listing nothing (0.347339ms)
✔ an unreadable run directory refuses instead of reading as missing (0.43216ms)
✔ a link to the data root's parent is outside it (0.337057ms)
✔ listRunIds sorts whatever order the directory returns (0.621322ms)
✔ listRunRecords lists an r- name that isn't a valid run id, as before (0.415545ms)
✔ the readers write nothing (1.603367ms)
✔ no pointer is null (1.425692ms)
✔ the pointer release.sh writes reads back (0.93108ms)
✔ a pointer that isn't the version 1 shape refuses with exit 2 (1.332647ms)
✔ a pointer that is a directory refuses with exit 4 (0.453037ms)
✔ a state file linked out of the data root refuses (0.76448ms)
✔ a state directory linked out of the data root refuses (0.4525ms)
✔ a state directory linked out to nothing reads as no release and an empty log (0.385638ms)
✔ a missing log is empty (0.314613ms)
✔ the log reads oldest first and counts malformed lines (0.844953ms)
✔ last must be a positive integer (0.397825ms)
✔ the state readers write nothing (0.68081ms)
✔ list prints each run in the established format (64.74126ms)
✔ list prints a damaged result.json as unknown and keeps listing the runs after it (60.863686ms)
✔ list prints each result field that isn't a string as unknown or - (62.058077ms)
✔ show prints the run in the established format (62.612853ms)
✔ show of a missing run and an invalid id exit 4 as before (99.744009ms)
✔ list and show refuse a runs directory linked out of the data root (116.552692ms)
✔ show refuses a run linked out of the data root; list reports it unknown (114.899798ms)
✔ list shows an r- name that isn't a valid run id, as before (55.792915ms)
✔ show refuses an invalid id before reading the config (37.281491ms)
ℹ tests 43
ℹ suites 0
ℹ pass 43
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 722.55023
