MCPcopy Create free account
hub / github.com/diillson/chatcli / TestPartialInputReader_Snapshot

Function TestPartialInputReader_Snapshot

llm/partial_input_test.go:156–162  ·  view source on GitHub ↗

TestPartialInputReader_Snapshot lets diagnostics peek at the internal buffer without disturbing the streaming state.

(t *testing.T)

Source from the content-addressed store, hash-verified

154// TestPartialInputReader_Snapshot lets diagnostics peek at the
155// internal buffer without disturbing the streaming state.
156func TestPartialInputReader_Snapshot(t *testing.T) {
157 r := NewPartialInputReader()
158 r.Feed(`{"k":`)
159 assert.Equal(t, `{"k":`, r.Snapshot())
160 r.Feed(`"v"}`)
161 assert.Equal(t, `{"k":"v"}`, r.Snapshot())
162}

Callers

nothing calls this directly

Calls 4

FeedMethod · 0.95
SnapshotMethod · 0.95
NewPartialInputReaderFunction · 0.85
EqualMethod · 0.80

Tested by

no test coverage detected