MCPcopy Index your code
hub / github.com/tbphp/gpt-load / TestRedactSecretNotPresent

Function TestRedactSecretNotPresent

internal/utils/string_utils_test.go:55–63  ·  view source on GitHub ↗

TestRedactSecretNotPresent asserts text without the secret is returned unchanged.

(t *testing.T)

Source from the content-addressed store, hash-verified

53
54// TestRedactSecretNotPresent asserts text without the secret is returned unchanged.
55func TestRedactSecretNotPresent(t *testing.T) {
56 text := "connection refused"
57
58 got := RedactSecret(text, "sk-secret-upstream-key-1234")
59
60 if got != text {
61 t.Errorf("RedactSecret() = %q, want unchanged %q", got, text)
62 }
63}

Callers

nothing calls this directly

Calls 1

RedactSecretFunction · 0.85

Tested by

no test coverage detected