TestPartialInputReader_Snapshot lets diagnostics peek at the internal buffer without disturbing the streaming state.
(t *testing.T)
| 154 | // TestPartialInputReader_Snapshot lets diagnostics peek at the |
| 155 | // internal buffer without disturbing the streaming state. |
| 156 | func 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 | } |
nothing calls this directly
no test coverage detected