recoveryAuthToolSet simulates a toolset whose first Start() always succeeds, and whose Restart() returns a configurable error (used to simulate a background invalid_token loss after a prior successful start). IsStarted() reflects live connection state so StartableToolSet.Start() can detect the "inne
| 1417 | // IsStarted() reflects live connection state so StartableToolSet.Start() can |
| 1418 | // detect the "inner went dead" recovery scenario. |
| 1419 | type recoveryAuthToolSet struct { |
| 1420 | started bool |
| 1421 | restartErr error |
| 1422 | } |
| 1423 | |
| 1424 | func (r *recoveryAuthToolSet) Tools(context.Context) ([]tools.Tool, error) { return nil, nil } |
| 1425 | func (r *recoveryAuthToolSet) Start(context.Context) error { r.started = true; return nil } |
nothing calls this directly
no outgoing calls
no test coverage detected