Files
codeql/go/ql/test/query-tests/AlertSuppression/AlertSuppressionExample.go
2022-05-20 10:07:19 -07:00

16 lines
282 B
Go

package main
import "testing"
func login(user, password string) bool {
return true
}
func TestLogin(t *testing.T) {
user := "testuser"
password := "horsebatterystaplecorrect" // lgtm[go/hardcoded-credentials]
if !login(user, password) {
t.Errorf("Login test failed.")
}
}