MCPcopy Index your code
hub / github.com/docker/docker-agent / drainRunStream

Function drainRunStream

pkg/runtime/compaction_model_integration_test.go:53–60  ·  view source on GitHub ↗
(t *testing.T, rt *LocalRuntime, sess *session.Session)

Source from the content-addressed store, hash-verified

51}
52
53func drainRunStream(t *testing.T, rt *LocalRuntime, sess *session.Session) []Event {
54 t.Helper()
55 var events []Event
56 for ev := range rt.RunStream(t.Context(), sess) {
57 events = append(events, ev)
58 }
59 return events
60}
61
62// TestRunStream_GaugeUsesEffectiveContextLimit verifies end-to-end that the UI
63// context gauge (TokenUsageEvent) reports the EFFECTIVE window — the primary

Calls 2

ContextMethod · 0.80
RunStreamMethod · 0.65

Tested by

no test coverage detected