MCPcopy
hub / github.com/keploy/keploy / TestResolveTestTarget_EdgeCases

Function TestResolveTestTarget_EdgeCases

pkg/util_test.go:1730–1741  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

1728}
1729
1730func TestResolveTestTarget_EdgeCases(t *testing.T) {
1731 logger := zap.NewNop()
1732
1733 t.Run("HTTP_InvalidURL", func(t *testing.T) {
1734 _, err := ResolveTestTarget("http://[::1]:namedport", nil, nil, "", 0, 0, true, logger)
1735 assert.Error(t, err)
1736 })
1737
1738 t.Run("GRPC_ConfigHost_ReplaceError", func(t *testing.T) {
1739 // Mock logic or ensure specific error condition if possible, though ReplaceGrpcHost is robust
1740 })
1741}
1742
1743// --- updateTemplateValuesFromHTTPResp: response-header walk tests ---
1744//

Callers

nothing calls this directly

Calls 3

ResolveTestTargetFunction · 0.85
RunMethod · 0.65
ErrorMethod · 0.45

Tested by

no test coverage detected