TestCopilot_KeyFailoverConfig verifies that Copilot, being BYOK-only, returns a zero-value KeyFailoverConfig so that KeyFailoverTransport short-circuits and passes the request through unchanged.
(t *testing.T)
| 56 | // returns a zero-value KeyFailoverConfig so that KeyFailoverTransport |
| 57 | // short-circuits and passes the request through unchanged. |
| 58 | func TestCopilot_KeyFailoverConfig(t *testing.T) { |
| 59 | t.Parallel() |
| 60 | |
| 61 | p := NewCopilot(config.Copilot{}) |
| 62 | |
| 63 | cfg := p.KeyFailoverConfig(slog.Make()) |
| 64 | |
| 65 | assert.Equal(t, keypool.KeyFailoverConfig{}, cfg, "Copilot must return a zero-value KeyFailoverConfig to short-circuit the transport") |
| 66 | } |
| 67 | |
| 68 | func TestCopilot_CreateInterceptor(t *testing.T) { |
| 69 | t.Parallel() |
nothing calls this directly
no test coverage detected