mirror of
https://github.com/tailscale/tailscale.git
synced 2026-11-26 11:36:26 -08:00
tests: cause errors to test go-matcher.json
Change-Id: I135ceba05c9b1ba2f70450a0c823c31f38ea1fde Signed-off-by: Simon Law <[email protected]>
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -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
@@ -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)
|
||||
}
|
||||
Reference in new issue
Block a user