mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01: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