MCPcopy
hub / github.com/jetify-com/devbox / checkRedactedError

Function checkRedactedError

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

Source from the content-addressed store, hash-verified

292}
293
294func checkRedactedError(t *testing.T, got error, wantMsg string) {
295 t.Helper()
296
297 gotMsg := fmt.Sprint(Error(got))
298 if gotMsg != wantMsg {
299 t.Errorf("got wrong redacted error:\ngot: %q\nwant: %q", gotMsg, wantMsg)
300 }
301}

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 1

ErrorFunction · 0.70

Tested by

no test coverage detected