52 lines
3.1 KiB
Plaintext
52 lines
3.1 KiB
Plaintext
✔ isRunId accepts the run id shape and nothing else (1.904844ms)
|
||
✔ a missing data root or runs directory lists nothing (2.74118ms)
|
||
✔ runs as a regular file lists nothing, as before (1.254465ms)
|
||
✔ listRunIds keeps r- names only, sorted oldest first (1.719802ms)
|
||
✔ listRunRecords returns each result, or null for an incomplete or unreadable one (8.920394ms)
|
||
✔ readRunRecord returns documents and artifacts in directory order (1.880566ms)
|
||
✔ readRunRecord is null for a missing run, a dangling link or a file (1.47994ms)
|
||
✔ readRunRecord and readRunDocument refuse an invalid run id before touching the disk (1.237934ms)
|
||
✔ readRunDocument reads only the three run documents (1.081653ms)
|
||
✔ a link inside the data root is followed (2.021364ms)
|
||
✔ a data root that is itself a link is trusted as configured (1.162407ms)
|
||
✔ a run directory linked out of the data root is never read (1.262772ms)
|
||
✔ a document linked out of the data root reads as null (2.30925ms)
|
||
✔ a runs directory linked out of the data root refuses (1.007275ms)
|
||
✔ a relative link that climbs out of the data root refuses (1.037732ms)
|
||
✔ a sibling whose name starts with the data root's name is outside it (1.144171ms)
|
||
✔ a link loop refuses instead of reading as missing (1.22113ms)
|
||
✔ an unreadable runs directory refuses instead of listing nothing (0.815896ms)
|
||
✔ an unreadable run directory refuses instead of reading as missing (0.951148ms)
|
||
✔ a link to the data root's parent is outside it (0.756864ms)
|
||
✔ listRunIds sorts whatever order the directory returns (1.401427ms)
|
||
✔ listRunRecords lists an r- name that isn't a valid run id, as before (0.984287ms)
|
||
✔ the readers write nothing (4.340578ms)
|
||
✔ no pointer is null (3.217586ms)
|
||
✔ the pointer release.sh writes reads back (2.084668ms)
|
||
✔ a pointer that isn't the version 1 shape refuses with exit 2 (3.942247ms)
|
||
✔ a pointer that is a directory refuses with exit 4 (1.153498ms)
|
||
✔ a state file linked out of the data root refuses (3.242633ms)
|
||
✔ a state directory linked out of the data root refuses (1.246227ms)
|
||
✔ a state directory linked out to nothing reads as no release and an empty log (1.83888ms)
|
||
✔ a missing log is empty (0.786864ms)
|
||
✔ the log reads oldest first and counts malformed lines (2.515689ms)
|
||
✔ last must be a positive integer (0.926506ms)
|
||
✔ the state readers write nothing (1.347749ms)
|
||
✔ list prints each run in the established format (204.188393ms)
|
||
✔ list prints a damaged result.json as unknown and keeps listing the runs after it (354.027541ms)
|
||
✔ list prints each result field that isn't a string as unknown or - (341.299741ms)
|
||
✔ show prints the run in the established format (386.091905ms)
|
||
✔ show of a missing run and an invalid id exit 4 as before (756.392044ms)
|
||
✔ list and show refuse a runs directory linked out of the data root (711.535542ms)
|
||
✔ show refuses a run linked out of the data root; list reports it unknown (740.607612ms)
|
||
✔ list shows an r- name that isn't a valid run id, as before (195.407925ms)
|
||
✔ show refuses an invalid id before reading the config (147.260487ms)
|
||
ℹ tests 43
|
||
ℹ suites 0
|
||
ℹ pass 43
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 3978.203917
|