Remove unused captured state and orphan helpers

This commit is contained in:
2026-11-05 14:33:04 +00:00
parent a91bc1608b
commit 7db5572b62
14 changed files with 16 additions and 74 deletions

View File

@@ -2586,10 +2586,6 @@ func float64Ptr(v float64) *float64 {
return &v
}
func stringPtr(v string) *string {
return &v
}
func intPtr(v int) *int {
return &v
}

View File

@@ -21,12 +21,11 @@ type reachabilityProbe struct {
}
type reachabilityProbeOutcome struct {
supported bool
reason domain.SmokeTestReason
initialEndpoint string
reachable *bool
evidence llm.HTTPExecutionEvidence
failure domain.ExecutionFailureKind
supported bool
reason domain.SmokeTestReason
reachable *bool
evidence llm.HTTPExecutionEvidence
failure domain.ExecutionFailureKind
}
func (p reachabilityProbe) run(
@@ -44,7 +43,7 @@ func (p reachabilityProbe) run(
if err != nil {
return reachabilityProbeOutcome{}, fmt.Errorf("prepare reachability endpoint: %w", err)
}
result := reachabilityProbeOutcome{supported: true, initialEndpoint: endpoint}
result := reachabilityProbeOutcome{supported: true}
response, evidence, requestErr := p.client.GetWithEvidence(ctx, endpoint, timeoutSeconds)
if response != nil && response.Body != nil {
_ = response.Body.Close()

View File

@@ -62,7 +62,7 @@ func TestReachabilityProbeRemovesURLCredentials(t *testing.T) {
if observed == nil || observed.URL.User != nil || observed.Header.Get("Authorization") != "" {
t.Fatalf("probe request retained URL credentials: %+v", observed)
}
if result.initialEndpoint != "https://example.invalid/health?check=1" || result.evidence.CredentialsSupplied {
if result.evidence.Endpoint != "https://example.invalid/health?check=1" || result.evidence.CredentialsSupplied {
t.Fatalf("credential-free evidence = %+v", result)
}
}