✔ isRunId accepts the run id shape and nothing else (1.306378ms)
✔ a missing data root or runs directory lists nothing (2.195703ms)
✔ runs as a regular file lists nothing, as before (0.832745ms)
✔ listRunIds keeps r- names only, sorted oldest first (1.032055ms)
✔ listRunRecords returns each result, or null for an incomplete or unreadable one (2.96098ms)
✔ readRunRecord returns documents and artifacts in directory order (1.386366ms)
✔ readRunRecord is null for a missing run, a dangling link or a file (1.079913ms)
✔ readRunRecord and readRunDocument refuse an invalid run id before touching the disk (1.059646ms)
✔ readRunDocument reads only the three run documents (0.919524ms)
✔ a link inside the data root is followed (1.7667ms)
✔ a data root that is itself a link is trusted as configured (1.154799ms)
✔ a run directory linked out of the data root is never read (1.194447ms)
✔ a document linked out of the data root reads as null (1.545639ms)
✔ a runs directory linked out of the data root refuses (1.012007ms)
✔ a relative link that climbs out of the data root refuses (0.840459ms)
✔ a sibling whose name starts with the data root's name is outside it (0.862225ms)
✔ a link loop refuses instead of reading as missing (1.091533ms)
✔ an unreadable runs directory refuses instead of listing nothing (0.700403ms)
✔ an unreadable run directory refuses instead of reading as missing (0.823368ms)
✔ a link to the data root's parent is outside it (0.661858ms)
✔ listRunIds sorts whatever order the directory returns (1.208556ms)
✔ the readers write nothing (3.397935ms)
✔ no pointer is null (2.922658ms)
✔ the pointer release.sh writes reads back (1.955593ms)
✔ a pointer that isn't the version 1 shape refuses with exit 2 (3.059019ms)
✔ a pointer that is a directory refuses with exit 4 (0.993624ms)
✔ a state file linked out of the data root refuses (2.525011ms)
✔ a state directory linked out of the data root refuses (1.000341ms)
✔ a missing log is empty (0.67567ms)
✔ the log reads oldest first and counts malformed lines (1.536433ms)
✔ last must be a positive integer (0.791281ms)
✔ the state readers write nothing (1.583337ms)
✔ list prints each run in the established format (111.618545ms)
✔ show prints the run in the established format (86.235796ms)
✔ show of a missing run and an invalid id exit 4 as before (147.991565ms)
✔ list and show refuse a runs directory linked out of the data root (221.002247ms)
✔ show refuses a run linked out of the data root; list reports it unknown (185.706284ms)
ℹ tests 37
ℹ suites 0
ℹ pass 37
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 897.558738
