aboutsummaryrefslogtreecommitdiff
path: root/test/dune
diff options
context:
space:
mode:
authorLukasz Kasprzak <lukas@labunix.xyz>2026-08-11 12:27:24 +0200
committerLukasz Kasprzak <lukas@labunix.xyz>2026-08-11 12:27:24 +0200
commite58cf9920254d7312325cf382b5be24efc175749 (patch)
tree560592ded5d4e11514ebffc97dd4b530039177bb /test/dune
parent2e3697b5ce7338568a67531d07a5528f0de1da22 (diff)
downloadcolitur-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 'test/dune')
0 files changed, 0 insertions, 0 deletions