52 lines
3.1 KiB
Plaintext
52 lines
3.1 KiB
Plaintext
✔ isRunId accepts the run id shape and nothing else (2.568941ms)
|
||
✔ a missing data root or runs directory lists nothing (2.939514ms)
|
||
✔ runs as a regular file lists nothing, as before (1.019613ms)
|
||
✔ listRunIds keeps r- names only, sorted oldest first (2.719479ms)
|
||
✔ listRunRecords returns each result, or null for an incomplete or unreadable one (3.114161ms)
|
||
✔ readRunRecord returns documents and artifacts in directory order (3.521419ms)
|
||
✔ readRunRecord is null for a missing run, a dangling link or a file (2.158751ms)
|
||
✔ readRunRecord and readRunDocument refuse an invalid run id before touching the disk (2.290893ms)
|
||
✔ readRunDocument reads only the three run documents (1.106581ms)
|
||
✔ a link inside the data root is followed (3.778485ms)
|
||
✔ a data root that is itself a link is trusted as configured (1.300651ms)
|
||
✔ a run directory linked out of the data root is never read (1.176809ms)
|
||
✔ a document linked out of the data root reads as null (1.872091ms)
|
||
✔ a runs directory linked out of the data root refuses (3.90318ms)
|
||
✔ a relative link that climbs out of the data root refuses (1.055662ms)
|
||
✔ a sibling whose name starts with the data root's name is outside it (1.12414ms)
|
||
✔ a link loop refuses instead of reading as missing (2.914242ms)
|
||
✔ an unreadable runs directory refuses instead of listing nothing (1.677285ms)
|
||
✔ an unreadable run directory refuses instead of reading as missing (1.047099ms)
|
||
✔ a link to the data root's parent is outside it (0.767569ms)
|
||
✔ listRunIds sorts whatever order the directory returns (5.544969ms)
|
||
✔ listRunRecords lists an r- name that isn't a valid run id, as before (1.510095ms)
|
||
✔ the readers write nothing (6.935975ms)
|
||
✔ no pointer is null (3.666836ms)
|
||
✔ the pointer release.sh writes reads back (3.228552ms)
|
||
✔ a pointer that isn't the version 1 shape refuses with exit 2 (4.233111ms)
|
||
✔ a pointer that is a directory refuses with exit 4 (0.962611ms)
|
||
✔ a state file linked out of the data root refuses (3.480023ms)
|
||
✔ a state directory linked out of the data root refuses (1.043738ms)
|
||
✔ a state directory linked out to nothing reads as no release and an empty log (1.009903ms)
|
||
✔ a missing log is empty (0.602327ms)
|
||
✔ the log reads oldest first and counts malformed lines (2.899804ms)
|
||
✔ last must be a positive integer (0.919972ms)
|
||
✔ the state readers write nothing (1.523332ms)
|
||
✔ list prints each run in the established format (266.00502ms)
|
||
✔ list prints a damaged result.json as unknown and keeps listing the runs after it (220.69739ms)
|
||
✔ list prints each result field that isn't a string as unknown or - (389.353946ms)
|
||
✔ show prints the run in the established format (393.227974ms)
|
||
✔ show of a missing run and an invalid id exit 4 as before (595.010812ms)
|
||
✔ list and show refuse a runs directory linked out of the data root (341.365037ms)
|
||
✔ show refuses a run linked out of the data root; list reports it unknown (298.134336ms)
|
||
✔ list shows an r- name that isn't a valid run id, as before (193.528025ms)
|
||
✔ show refuses an invalid id before reading the config (87.606992ms)
|
||
ℹ tests 43
|
||
ℹ suites 0
|
||
ℹ pass 43
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 2988.719368
|