(t *testing.T)
| 59 | } |
| 60 | |
| 61 | func TestMemoryEngine_UnknownRequest(t *testing.T) { |
| 62 | engine := NewMemoryEngine() |
| 63 | snapshot := engine.Snapshot("missing") |
| 64 | if snapshot.TTFTMs != 0 || snapshot.CompletionLatencyMs != 0 || snapshot.FallbackTriggered { |
| 65 | t.Fatalf("expected zero-value snapshot for unknown request") |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | func TestMemoryEngine_EvictsWhenOverMaxRecords(t *testing.T) { |
| 70 | e := NewMemoryEngineFromConfig(config.SLOStoreConfig{MaxRecords: 2, MaxAgeMS: 3600000}) |
nothing calls this directly
no test coverage detected