mirror of
https://github.com/github/codeql.git
synced 2026-04-19 05:54:00 +02:00
Go: Add unit test to sanity check HasGoVersion
This commit is contained in:
@@ -14,3 +14,9 @@ func TestParseGoVersion(t *testing.T) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func TestHasGoVersion(t *testing.T) {
|
||||
if HasGoVersion("1.21") {
|
||||
t.Error("Exepected HasGoVersion(\"1.21\" to be false, but got true)")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user