52 lines
3.1 KiB
Plaintext
52 lines
3.1 KiB
Plaintext
✔ isRunId accepts the run id shape and nothing else (0.796425ms)
|
||
✔ a missing data root or runs directory lists nothing (1.214759ms)
|
||
✔ runs as a regular file lists nothing, as before (0.499312ms)
|
||
✔ listRunIds keeps r- names only, sorted oldest first (0.643352ms)
|
||
✔ listRunRecords returns each result, or null for an incomplete or unreadable one (1.618353ms)
|
||
✔ readRunRecord returns documents and artifacts in directory order (0.839686ms)
|
||
✔ readRunRecord is null for a missing run, a dangling link or a file (0.532378ms)
|
||
✔ readRunRecord and readRunDocument refuse an invalid run id before touching the disk (0.546198ms)
|
||
✔ readRunDocument reads only the three run documents (0.418018ms)
|
||
✔ a link inside the data root is followed (0.785133ms)
|
||
✔ a data root that is itself a link is trusted as configured (0.479919ms)
|
||
✔ a run directory linked out of the data root is never read (0.48238ms)
|
||
✔ a document linked out of the data root reads as null (0.807519ms)
|
||
✔ a runs directory linked out of the data root refuses (0.484797ms)
|
||
✔ a relative link that climbs out of the data root refuses (0.348218ms)
|
||
✔ a sibling whose name starts with the data root's name is outside it (0.40394ms)
|
||
✔ a link loop refuses instead of reading as missing (0.507846ms)
|
||
✔ an unreadable runs directory refuses instead of listing nothing (0.339779ms)
|
||
✔ an unreadable run directory refuses instead of reading as missing (0.421441ms)
|
||
✔ a link to the data root's parent is outside it (0.348348ms)
|
||
✔ listRunIds sorts whatever order the directory returns (0.644355ms)
|
||
✔ listRunRecords lists an r- name that isn't a valid run id, as before (0.381274ms)
|
||
✔ the readers write nothing (1.58464ms)
|
||
✔ no pointer is null (1.446738ms)
|
||
✔ the pointer release.sh writes reads back (0.933055ms)
|
||
✔ a pointer that isn't the version 1 shape refuses with exit 2 (1.869464ms)
|
||
✔ a pointer that is a directory refuses with exit 4 (0.46746ms)
|
||
✔ a state file linked out of the data root refuses (1.196546ms)
|
||
✔ a state directory linked out of the data root refuses (0.435641ms)
|
||
✔ a state directory linked out to nothing reads as no release and an empty log (0.398125ms)
|
||
✔ a missing log is empty (0.28292ms)
|
||
✔ the log reads oldest first and counts malformed lines (0.784545ms)
|
||
✔ last must be a positive integer (3.525327ms)
|
||
✔ the state readers write nothing (0.65018ms)
|
||
✔ list prints each run in the established format (63.847603ms)
|
||
✔ list prints a damaged result.json as unknown and keeps listing the runs after it (61.111368ms)
|
||
✔ list prints each result field that isn't a string as unknown or - (61.675224ms)
|
||
✔ show prints the run in the established format (62.92771ms)
|
||
✔ show of a missing run and an invalid id exit 4 as before (93.055191ms)
|
||
✔ list and show refuse a runs directory linked out of the data root (130.723304ms)
|
||
✔ show refuses a run linked out of the data root; list reports it unknown (141.473342ms)
|
||
✔ list shows an r- name that isn't a valid run id, as before (63.965869ms)
|
||
✔ show refuses an invalid id before reading the config (39.342102ms)
|
||
ℹ tests 43
|
||
ℹ suites 0
|
||
ℹ pass 43
|
||
ℹ fail 0
|
||
ℹ cancelled 0
|
||
ℹ skipped 0
|
||
ℹ todo 0
|
||
ℹ duration_ms 871.795556
|