MCPcopy Index your code
hub / github.com/jetify-com/devbox / TestErrorfRedactableArg

Function TestErrorfRedactableArg

internal/redact/redact_test.go:180–184  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

178}
179
180func TestErrorfRedactableArg(t *testing.T) {
181 err := Errorf("%d", redactableInt(123))
182 checkUnredactedError(t, err, "123")
183 checkRedactedError(t, err, "0")
184}
185
186func TestErrorFormat(t *testing.T) {
187 // Capture the first line of output as the error message and all following

Callers

nothing calls this directly

Calls 4

ErrorfFunction · 0.85
redactableIntTypeAlias · 0.85
checkUnredactedErrorFunction · 0.85
checkRedactedErrorFunction · 0.85

Tested by

no test coverage detected