MCPcopy Create free account
hub / github.com/github/gh-aw / BenchmarkSanitizeErrorMessage_NoSecrets

Function BenchmarkSanitizeErrorMessage_NoSecrets

pkg/stringutil/sanitize_test.go:287–292  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

285}
286
287func BenchmarkSanitizeErrorMessage_NoSecrets(b *testing.B) {
288 message := "This is a regular error message with no secrets to redact"
289 for b.Loop() {
290 SanitizeErrorMessage(message)
291 }
292}
293
294func BenchmarkSanitizeErrorMessage_ManySecrets(b *testing.B) {
295 message := "Error with API_KEY, DATABASE_PASSWORD, AWS_SECRET, GitHubToken, and DeploySecret"

Callers

nothing calls this directly

Calls 1

SanitizeErrorMessageFunction · 0.85

Tested by

no test coverage detected