52 lines
3.1 KiB
Plaintext
52 lines
3.1 KiB
Plaintext
✔ isRunId accepts the run id shape and nothing else (1.089094ms)
|
||
✔ a missing data root or runs directory lists nothing (1.703202ms)
|
||
✔ runs as a regular file lists nothing, as before (0.634478ms)
|
||
✔ listRunIds keeps r- names only, sorted oldest first (0.961785ms)
|
||
✔ listRunRecords returns each result, or null for an incomplete or unreadable one (2.413809ms)
|
||
✔ readRunRecord returns documents and artifacts in directory order (1.118458ms)
|
||
✔ readRunRecord is null for a missing run, a dangling link or a file (0.718063ms)
|
||
✔ readRunRecord and readRunDocument refuse an invalid run id before touching the disk (0.73504ms)
|
||
✔ readRunDocument reads only the three run documents (0.809058ms)
|
||
✔ a link inside the data root is followed (1.46001ms)
|
||
✔ a data root that is itself a link is trusted as configured (0.636328ms)
|
||
✔ a run directory linked out of the data root is never read (0.682721ms)
|
||
✔ a document linked out of the data root reads as null (1.219035ms)
|
||
✔ a runs directory linked out of the data root refuses (0.735944ms)
|
||
✔ a relative link that climbs out of the data root refuses (0.484886ms)
|
||
✔ a sibling whose name starts with the data root's name is outside it (0.623447ms)
|
||
✔ a link loop refuses instead of reading as missing (0.693458ms)
|
||
✔ an unreadable runs directory refuses instead of listing nothing (0.47365ms)
|
||
✔ an unreadable run directory refuses instead of reading as missing (0.706729ms)
|
||
✔ a link to the data root's parent is outside it (0.459453ms)
|
||
✔ listRunIds sorts whatever order the directory returns (0.895128ms)
|
||
✔ listRunRecords lists an r- name that isn't a valid run id, as before (0.561501ms)
|
||
✔ the readers write nothing (2.415002ms)
|
||
✔ no pointer is null (2.120389ms)
|
||
✔ the pointer release.sh writes reads back (1.53396ms)
|
||
✔ a pointer that isn't the version 1 shape refuses with exit 2 (2.35208ms)
|
||
✔ a pointer that is a directory refuses with exit 4 (0.695862ms)
|
||
✔ a state file linked out of the data root refuses (1.891929ms)
|
||
✔ a state directory linked out of the data root refuses (0.625037ms)
|
||
✔ a state directory linked out to nothing reads as no release and an empty log (1.058711ms)
|
||
✔ a missing log is empty (0.432539ms)
|
||
✔ the log reads oldest first and counts malformed lines (1.11693ms)
|
||
✔ last must be a positive integer (0.571264ms)
|
||
✔ the state readers write nothing (0.896547ms)
|
||
✔ list prints each run in the established format (87.188913ms)
|
||
✔ list prints a damaged result.json as unknown and keeps listing the runs after it (89.285259ms)
|
||
✔ list prints each result field that isn't a string as unknown or - (65.962497ms)
|
||
✔ show prints the run in the established format (73.989417ms)
|
||
✔ show of a missing run and an invalid id exit 4 as before (112.795422ms)
|
||
✔ list and show refuse a runs directory linked out of the data root (141.391925ms)
|
||
✔ show refuses a run linked out of the data root; list reports it unknown (130.239136ms)
|
||
✔ list shows an r- name that isn't a valid run id, as before (69.330303ms)
|
||
✔ show refuses an invalid id before reading the config (43.449869ms)
|
||
ℹ tests 43
|
||
ℹ suites 0
|
||
ℹ pass 43
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 888.478192
|