test

package
v0.0.0-...-e95d944 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadPackages

func LoadPackages(e *packagestest.Exported, patterns ...string) ([]*packages.Package, error)

LoadPackages loads packages for patterns. Returns error if the loading failed or some of the specified packages have issues. In the latter case, the error message will contain information only for the first observed package with issues.

Types

type MockClient

type MockClient struct {
	client.Client
	Ret map[string][]*osv.Entry
}

MockClient is an in-memory vulnerability database client.

func (*MockClient) GetByModule

func (mc *MockClient) GetByModule(ctx context.Context, a string) ([]*osv.Entry, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL