mirror of
https://github.com/github/codeql.git
synced 2025-12-18 09:43:15 +01:00
16 lines
282 B
Go
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.")
|
|
}
|
|
}
|