Bumping k8s dependencies to 1.13
This commit is contained in:
2
vendor/golang.org/x/tools/cmd/guru/callees.go
generated
vendored
2
vendor/golang.org/x/tools/cmd/guru/callees.go
generated
vendored
@@ -18,7 +18,7 @@ import (
|
||||
"golang.org/x/tools/go/ssa/ssautil"
|
||||
)
|
||||
|
||||
// Callees reports the possible callees of the function call site
|
||||
// The callees function reports the possible callees of the function call site
|
||||
// identified by the specified source location.
|
||||
func callees(q *Query) error {
|
||||
lconf := loader.Config{Build: q.Build}
|
||||
|
2
vendor/golang.org/x/tools/cmd/guru/callers.go
generated
vendored
2
vendor/golang.org/x/tools/cmd/guru/callers.go
generated
vendored
@@ -16,7 +16,7 @@ import (
|
||||
"golang.org/x/tools/go/ssa/ssautil"
|
||||
)
|
||||
|
||||
// Callers reports the possible callers of the function
|
||||
// The callers function reports the possible callers of the function
|
||||
// immediately enclosing the specified source location.
|
||||
//
|
||||
func callers(q *Query) error {
|
||||
|
2
vendor/golang.org/x/tools/cmd/guru/callstack.go
generated
vendored
2
vendor/golang.org/x/tools/cmd/guru/callstack.go
generated
vendored
@@ -16,7 +16,7 @@ import (
|
||||
"golang.org/x/tools/go/ssa/ssautil"
|
||||
)
|
||||
|
||||
// Callstack displays an arbitrary path from a root of the callgraph
|
||||
// The callstack function displays an arbitrary path from a root of the callgraph
|
||||
// to the function at the current position.
|
||||
//
|
||||
// The information may be misleading in a context-insensitive
|
||||
|
10
vendor/golang.org/x/tools/cmd/guru/describe.go
generated
vendored
10
vendor/golang.org/x/tools/cmd/guru/describe.go
generated
vendored
@@ -8,7 +8,7 @@ import (
|
||||
"bytes"
|
||||
"fmt"
|
||||
"go/ast"
|
||||
exact "go/constant"
|
||||
"go/constant"
|
||||
"go/token"
|
||||
"go/types"
|
||||
"os"
|
||||
@@ -349,10 +349,10 @@ func describeValue(qpos *queryPos, path []ast.Node) (*describeValueResult, error
|
||||
|
||||
type describeValueResult struct {
|
||||
qpos *queryPos
|
||||
expr ast.Expr // query node
|
||||
typ types.Type // type of expression
|
||||
constVal exact.Value // value of expression, if constant
|
||||
obj types.Object // var/func/const object, if expr was Ident
|
||||
expr ast.Expr // query node
|
||||
typ types.Type // type of expression
|
||||
constVal constant.Value // value of expression, if constant
|
||||
obj types.Object // var/func/const object, if expr was Ident
|
||||
methods []*types.Selection
|
||||
fields []describeField
|
||||
}
|
||||
|
18
vendor/golang.org/x/tools/cmd/guru/guru_test.go
generated
vendored
18
vendor/golang.org/x/tools/cmd/guru/guru_test.go
generated
vendored
@@ -35,6 +35,7 @@ import (
|
||||
"go/token"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"os"
|
||||
"os/exec"
|
||||
"path/filepath"
|
||||
@@ -49,6 +50,18 @@ import (
|
||||
guru "golang.org/x/tools/cmd/guru"
|
||||
)
|
||||
|
||||
func init() {
|
||||
// This test currently requires GOPATH mode.
|
||||
// Explicitly disabling module mode should suffix, but
|
||||
// we'll also turn off GOPROXY just for good measure.
|
||||
if err := os.Setenv("GO111MODULE", "off"); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
if err := os.Setenv("GOPROXY", "off"); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
var updateFlag = flag.Bool("update", false, "Update the golden files.")
|
||||
|
||||
type query struct {
|
||||
@@ -268,11 +281,6 @@ func TestGuru(t *testing.T) {
|
||||
// tests once we drop support for go1.8.
|
||||
t.Skip()
|
||||
}
|
||||
if filename == "testdata/src/referrers/main.go" && !contains(build.Default.ReleaseTags, "go1.11") {
|
||||
// Disabling broken test on Go 1.9 and Go 1.10. https://golang.org/issue/24421
|
||||
// TODO(gri,adonovan): fix this test.
|
||||
t.Skip()
|
||||
}
|
||||
|
||||
json := strings.Contains(filename, "-json/")
|
||||
queries := parseQueries(t, filename)
|
||||
|
2
vendor/golang.org/x/tools/cmd/guru/implements.go
generated
vendored
2
vendor/golang.org/x/tools/cmd/guru/implements.go
generated
vendored
@@ -19,7 +19,7 @@ import (
|
||||
"golang.org/x/tools/refactor/importgraph"
|
||||
)
|
||||
|
||||
// Implements displays the "implements" relation as it pertains to the
|
||||
// The implements function displays the "implements" relation as it pertains to the
|
||||
// selected type.
|
||||
// If the selection is a method, 'implements' displays
|
||||
// the corresponding methods of the types that would have been reported
|
||||
|
2
vendor/golang.org/x/tools/cmd/guru/referrers.go
generated
vendored
2
vendor/golang.org/x/tools/cmd/guru/referrers.go
generated
vendored
@@ -27,7 +27,7 @@ import (
|
||||
"golang.org/x/tools/refactor/importgraph"
|
||||
)
|
||||
|
||||
// Referrers reports all identifiers that resolve to the same object
|
||||
// The referrers function reports all identifiers that resolve to the same object
|
||||
// as the queried identifier, within any package in the workspace.
|
||||
func referrers(q *Query) error {
|
||||
fset := token.NewFileSet()
|
||||
|
2
vendor/golang.org/x/tools/cmd/guru/testdata/src/referrers/main.golden
generated
vendored
2
vendor/golang.org/x/tools/cmd/guru/testdata/src/referrers/main.golden
generated
vendored
@@ -60,5 +60,5 @@ references to var notexported int
|
||||
|
||||
-------- @referrers ref-type-U --------
|
||||
references to type U int
|
||||
open nosuchfile.y: no such file or directory (+ 1 more refs in this file)
|
||||
open testdata/src/referrers/nosuchfile.y: no such file or directory (+ 1 more refs in this file)
|
||||
|
||||
|
Reference in New Issue
Block a user