stubExternalProvider is a minimal extcred.Provider that always reports an account, simulating env/sidecar mode for guard tests.
| 500 | // stubExternalProvider is a minimal extcred.Provider that always reports an account, |
| 501 | // simulating env/sidecar mode for guard tests. |
| 502 | type stubExternalProvider struct{ name string } |
| 503 | |
| 504 | func (s *stubExternalProvider) Name() string { return s.name } |
| 505 | func (s *stubExternalProvider) ResolveAccount(_ context.Context) (*extcred.Account, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected