MCPcopy Create free account
hub / github.com/InferCore/InferCore / TestMemoryEngine_UnknownRequest

Function TestMemoryEngine_UnknownRequest

internal/slo/memory_engine_test.go:61–67  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

59}
60
61func 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
69func TestMemoryEngine_EvictsWhenOverMaxRecords(t *testing.T) {
70 e := NewMemoryEngineFromConfig(config.SLOStoreConfig{MaxRecords: 2, MaxAgeMS: 3600000})

Callers

nothing calls this directly

Calls 2

SnapshotMethod · 0.95
NewMemoryEngineFunction · 0.85

Tested by

no test coverage detected