aboutsummaryrefslogtreecommitdiff
path: root/hotline/mem_file_store_test.go
AgeCommit message (Collapse)Author
2026-07-08Add in-memory MemFileStore backendJeff Halter
Provide a reference non-OS FileStore that models storage as a flat keyspace of cleaned paths, deriving directory structure from key prefixes the way an object store does. It proves the FileStore abstraction is genuinely backend-agnostic and serves as a hermetic test fixture needing no temp directory. Symlink/ReadLink return errors.ErrUnsupported, matching how an object-store backend would behave. Tests drive a full upload -> list -> download round-trip and directory listing entirely in memory.