Debian Codegraph @

go/analysis/passes/framepointer/framepointer_test.go

raw symbols SCIP
1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package framepointer_testscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/framepointer_test`/
6
7 import (
8 "go/buildscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/"
9 "testingscip-go gomod github.com/golang/go/src go1.25.0 testing/"
10
11 "golang.org/x/tools/go/analysis/analysistestscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/"
12 "golang.org/x/tools/go/analysis/passes/framepointerscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/framepointer`/"
13 )
14
15 func Testscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/framepointer_test`/Test().(t *testingscip-go gomod github.com/golang/go/src go1.25.0 testing/.Tscip-go gomod github.com/golang/go/src go1.25.0 testing/T#) {
16 if buildscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/.Defaultscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/Default..GOOSscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/Context#GOOS. != "linux" && buildscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/.Defaultscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/Default..GOOSscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/Context#GOOS. != "darwin" {
17 // The test has an os-generic assembly file, testdata/a/asm_amd64.s.
18 // It should produce errors on linux or darwin, but not on other archs.
19 // Unfortunately, there's no way to say that in the "want" comments
20 // in that file. So we skip testing on other GOOSes. The framepointer
21 // analyzer should not report any errors on those GOOSes, so it's not
22 // really a hard test on those platforms.
23 t.Skipfscip-go gomod github.com/golang/go/src go1.25.0 testing/common#Skipf().("test for GOOS=%s is not implemented", buildscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/.Defaultscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/Default..GOOSscip-go gomod github.com/golang/go/src go1.25.0 `go/build`/Context#GOOS.)
24 }
25 analysistestscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/.Runscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/Run().(t, analysistestscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/.TestDatascip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/analysistest`/TestData.(), framepointerscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/framepointer`/.Analyzerscip-go gomod golang.org/x/tools . `golang.org/x/tools/go/analysis/passes/framepointer`/Analyzer., "a")
26 }