}
func TestCompareAPI(t *testing.T) {
+ if *flagCheck {
+ // not worth repeating in -check
+ t.Skip("skipping with -check set")
+ }
+
tests := []struct {
name string
features, required, exception []string
}
func TestSkipInternal(t *testing.T) {
+ if *flagCheck {
+ // not worth repeating in -check
+ t.Skip("skipping with -check set")
+ }
+
tests := []struct {
pkg string
want bool
}
func TestIssue64958(t *testing.T) {
+ if testing.Short() {
+ t.Skip("skipping with -short")
+ }
+ if *flagCheck {
+ // slow, not worth repeating in -check
+ t.Skip("skipping with -check set")
+ }
+ testenv.MustHaveGoBuild(t)
+
defer func() {
if x := recover(); x != nil {
t.Errorf("expected no panic; recovered %v", x)
}
}()
-
- testenv.MustHaveGoBuild(t)
-
for _, context := range contexts {
w := NewWalker(context, "testdata/src/issue64958")
pkg, err := w.importFrom("p", "", 0)