diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-11 12:27:24 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-08-11 12:27:24 +0200 |
| commit | e58cf9920254d7312325cf382b5be24efc175749 (patch) | |
| tree | 560592ded5d4e11514ebffc97dd4b530039177bb /lib/kernel/slug.mli | |
| parent | 2e3697b5ce7338568a67531d07a5528f0de1da22 (diff) | |
| download | colitur-e58cf9920254d7312325cf382b5be24efc175749.tar.gz colitur-e58cf9920254d7312325cf382b5be24efc175749.zip | |
test(layer): cover load's failure modes and same-date index ordering
load previously had zero coverage despite being the module's only fallible-
I/O function and the one place the brief's literal code would have let an
exception escape on this sexplib version (Failure instead of Parse_error).
Add cases for a missing file, a malformed/unterminated sexp, an invalid slug
embedded in an otherwise well-formed layer, and a success round-trip.
Also add a same-date index case with three entries inserted out of slug
order, pinning that the by-date index accumulates rather than overwrites and
returns buckets in canonical order regardless of insertion order -- the
previous two-entry fixture only ever touched bucket sizes 0 and 1.
Diffstat (limited to 'lib/kernel/slug.mli')
0 files changed, 0 insertions, 0 deletions
