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

Function checkUnredactedError

internal/redact/redact_test.go:285–292  ·  view source on GitHub ↗
(t *testing.T, got error, wantMsg string)

Source from the content-addressed store, hash-verified

283}
284
285func checkUnredactedError(t *testing.T, got error, wantMsg string) {
286 t.Helper()
287
288 gotMsg := fmt.Sprint(got)
289 if gotMsg != wantMsg {
290 t.Errorf("got wrong unredacted error:\ngot: %q\nwant: %q", gotMsg, wantMsg)
291 }
292}
293
294func checkRedactedError(t *testing.T, got error, wantMsg string) {
295 t.Helper()

Callers 11

TestNilFunction · 0.85
TestSimpleFunction · 0.85
TestSimpleWrapSimpleFunction · 0.85
TestRedactorFunction · 0.85
TestRedactorWrapRedactorFunction · 0.85
TestSimpleWrapRedactorFunction · 0.85
TestNestedWrapRedactorFunction · 0.85
TestErrorfFunction · 0.85
TestErrorfWrapErrorfFunction · 0.85
TestErrorfAsFunction · 0.85
TestErrorfRedactableArgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected