#1153·adk-go

Test coverage gaps in v1.3–v1.5 additions: memory/vertexai, streaming tool confirmation, adkrest RunLiveHandler

Author: dmoraCreated Jul 13, 2026Updated Sep 27, 2026
Labelsenhancement

While integrating v1.5.0 into our fork we noticed several newer surfaces ship without tests (all still true on main @ 0c88126):

  1. memory/vertexai — no _test.go in the package. AddSessionToMemory has untested branching: the stateKeySessionLastUpdateTime == "" dispatch vs the filtered path, and the t.(time.Time) type assertion.

  2. tool/functiontool/streaming_function.go — no streaming_function_test.go. Untested: the RunStream ToolConfirmation gate (both the rejection and the confirmation-request paths — the non-streaming equivalents are covered by TestToolConfirmation), and the RequireConfirmationProvider type-assertion error branch.

  3. server/adkrest RunLiveHandler — the /run_live WebSocket endpoint has no integration test: upgrader handshake, the binary/text frame protocol contract, the two-goroutine lifecycle, and close-frame drain are all unexercised. The repo's existing mock live-agent patterns look sufficient to drive this without a real model connection.

Happy to contribute some of these if useful — filing first so the gaps are tracked and the intended testing approach can be discussed.