TestPartialInputReader_IgnoresNonStringFields documents that numbers, booleans, arrays, and nested objects are skipped — they don't fit the spinner UX and the per-provider streaming code can pull them after the full block lands.
(t *testing.T)
| 65 | // the spinner UX and the per-provider streaming code can pull them |
| 66 | // after the full block lands. |
| 67 | func TestPartialInputReader_IgnoresNonStringFields(t *testing.T) { |
| 68 | r := NewPartialInputReader() |
| 69 | var seen []string |
| 70 | r.OnField = func(f PartialInputField) { seen = append(seen, f.Name) } |
| 71 | |
| 72 | r.Feed(`{"query":"x","max_results":10,"flag":true,"items":[1,2],"nested":{"k":"v"}}`) |
| 73 | assert.Equal(t, []string{"query"}, seen) |
| 74 | } |
| 75 | |
| 76 | // TestPartialInputReader_FeedAfterClose is a no-op safety check: |
| 77 | // after Close, additional fragments are silently dropped rather than |
nothing calls this directly
no test coverage detected