(b *testing.B)
| 285 | } |
| 286 | |
| 287 | func 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 | |
| 294 | func BenchmarkSanitizeErrorMessage_ManySecrets(b *testing.B) { |
| 295 | message := "Error with API_KEY, DATABASE_PASSWORD, AWS_SECRET, GitHubToken, and DeploySecret" |
nothing calls this directly
no test coverage detected