(b *testing.B)
| 292 | } |
| 293 | |
| 294 | func 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 | |
| 301 | func TestSanitizeIdentifierName(t *testing.T) { |
| 302 | tests := []struct { |
nothing calls this directly
no test coverage detected