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

Function BenchmarkSanitizeErrorMessage_ManySecrets

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

Source from the content-addressed store, hash-verified

292}
293
294func BenchmarkSanitizeErrorMessage_ManySecrets(b *testing.B) {
295 message := "Error with API_KEY, DATABASE_PASSWORD, AWS_SECRET, GitHubToken, and DeploySecret"
296 for b.Loop() {
297 SanitizeErrorMessage(message)
298 }
299}
300
301func TestSanitizeIdentifierName(t *testing.T) {
302 tests := []struct {

Callers

nothing calls this directly

Calls 1

SanitizeErrorMessageFunction · 0.85

Tested by

no test coverage detected