blob: 9d86a0be889513c69d7ae3123cd32d03984d0e50 [file]
// Copyright 2024 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package stdversion_test
import (
"path/filepath"
"testing"
"golang.org/x/tools/go/analysis/analysistest"
"golang.org/x/tools/go/analysis/passes/stdversion"
"golang.org/x/tools/internal/testfiles"
)
func Test(t *testing.T) {
dir := testfiles.ExtractTxtarFileToTmp(t, filepath.Join(analysistest.TestData(), "test.txtar"))
analysistest.Run(t, dir, stdversion.Analyzer,
"example.com/basic",
"example.com/despite",
"example.com/mod20",
"example.com/mod21",
"example.com/mod22",
"example.com/old",
)
}