(t *testing.T)
| 201 | } |
| 202 | |
| 203 | func TestDetectTenant_Disabled(t *testing.T) { |
| 204 | t.Setenv(envDisable, "1") |
| 205 | t.Setenv(EnvPlatformToken, cqpdTokenWithURL(t, "https://x.example.com")) |
| 206 | _, ok := DetectTenant(context.Background(), "", "") |
| 207 | require.False(t, ok, "disable env suppresses detection") |
| 208 | } |
| 209 | |
| 210 | func TestDetectTenant_NoCredentials(t *testing.T) { |
| 211 | _, ok := DetectTenant(context.Background(), "", "") |
nothing calls this directly
no test coverage detected