gotools/gopls/internal/test/integration/misc/vuln_test.go

func TestRunGovulncheckError(t *testing.T) {}

func TestRunGovulncheckError2(t *testing.T) {}

const vulnsData

func TestRunGovulncheckStd(t *testing.T) {}

func TestFetchVulncheckResultStd(t *testing.T) {}

type fetchVulncheckResult

// testFetchVulncheckResult checks that calling gopls.fetch_vulncheck_result
// returns the expected summarized results contained in the want argument.
//
// If fromRun is non-nil, is is the result of running running vulncheck for
// runPath, and testFetchVulncheckResult also checks that the fetched result
// for runPath matches fromRun.
//
// This awkward factoring is an artifact of a transition from fetching
// vulncheck results asynchronously, to allowing the command to run
// asynchronously, yet returning the result synchronously from the client's
// perspective.
//
// TODO(rfindley): once VS Code no longer depends on fetching results
// asynchronously, we can remove gopls.fetch_vulncheck_result, and simplify or
// remove this helper.
func testFetchVulncheckResult(t *testing.T, env *Env, runPath string, fromRun *vulncheck.Result, want map[string]fetchVulncheckResult) {}

const workspace1

const proxy1

func vulnTestEnv(proxyData string) (*vulntest.DB, []RunOption, error) {}

func TestRunVulncheckPackageDiagnostics(t *testing.T) {}

// TestRunGovulncheck_Expiry checks that govulncheck results expire after a
// certain amount of time.
func TestRunGovulncheck_Expiry(t *testing.T) {}

func stringify(a interface{}

func TestRunVulncheckWarning(t *testing.T) {}

func diffCodeActions(gotActions []protocol.CodeAction, want []string) string {}

const workspace2

const proxy2

func TestGovulncheckInfo(t *testing.T) {}

// testVulnDiagnostics finds the require or module statement line for the requireMod in go.mod file
// and runs checks if diagnostics and code actions associated with the line match expectation.
func testVulnDiagnostics(t *testing.T, env *Env, pattern string, want vulnDiagExpectation, got *protocol.PublishDiagnosticsParams) []protocol.Diagnostic {}

type vulnRelatedInfo

type vulnDiag

type vulnDiagExpectation