Test coverage gaps in v1.3–v1.5 additions: memory/vertexai, streaming tool confirmation, adkrest RunLiveHandler
While integrating v1.5.0 into our fork we noticed several newer surfaces ship without tests (all still true on main @ 0c88126):
memory/vertexai— no_test.goin the package.AddSessionToMemoryhas untested branching: thestateKeySessionLastUpdateTime == ""dispatch vs the filtered path, and thet.(time.Time)type assertion.tool/functiontool/streaming_function.go— nostreaming_function_test.go. Untested: theRunStreamToolConfirmation gate (both the rejection and the confirmation-request paths — the non-streaming equivalents are covered byTestToolConfirmation), and theRequireConfirmationProvidertype-assertion error branch.server/adkrestRunLiveHandler— the/run_liveWebSocket 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.
Source: google/adk-go