tests: cause errors to test go-matcher.json

Change-Id: I135ceba05c9b1ba2f70450a0c823c31f38ea1fde
Signed-off-by: Simon Law <[email protected]>
This commit is contained in:
Simon Law committed 2026-11-25 02:29:10 -05:00
1 parent 4526c84452
commit e6fa7c3478
2 files changed
+6 -1

No files matched your search

+4
View File
@@ -9,6 +9,10 @@ import (
"tailscale.com/tstest/deptest"
)
func TestFatal(t *testing.T) {
t.Fatal("on purpose")
}
func TestDeps(t *testing.T) {
deptest.DepChecker{
BadDeps: map[string]string{
+2 -1
View File
@@ -7,6 +7,7 @@ package main
import (
_ "embed"
"golang.org/x/tools/go/analysis/passes/copylock"
"golang.org/x/tools/go/analysis/unitchecker"
"tailscale.com/cmd/vet/jsontags"
"tailscale.com/cmd/vet/lowerell"
@@ -22,5 +23,5 @@ func init() {
}
func main() {
unitchecker.Main(jsontags.Analyzer, lowerell.Analyzer, subtestnames.Analyzer)
unitchecker.Main(copylock.Analyzer, jsontags.Analyzer, lowerell.Analyzer, subtestnames.Analyzer)
}