FakeTracerouteSnapshotRepository
A test double for TracerouteSnapshotRepository keyed by logUuid.
Use upsertSnapshotPositions as you would in production, or seedSnapshot to directly inject state for a log.
Functions
Link copied to clipboard
Link copied to clipboard
Returns the last request-id recorded for logUuid, or null if none.
Link copied to clipboard
Directly seeds the snapshot for a log (bypasses request-id tracking).
Link copied to clipboard
open suspend override fun upsertSnapshotPositions(logUuid: String, requestId: Int, positions: Map<Int, Position>)