vulnsrctest

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestGet

func TestGet(t *testing.T, vulnsrc Getter, args TestGetArgs)

func TestUpdate

func TestUpdate(t *testing.T, vulnsrc Updater, args TestUpdateArgs)

Types

type Getter

type Getter interface {
	Get(string, string) ([]types.Advisory, error)
}

type TestGetArgs

type TestGetArgs struct {
	Fixtures   []string
	WantValues []types.Advisory
	Release    string
	PkgName    string
	WantErr    string
}

type TestUpdateArgs

type TestUpdateArgs struct {
	Dir        string
	WantValues []WantValues
	WantErr    string
	NoBuckets  [][]string
}

type Updater

type Updater interface {
	Update(dir string) (err error)
}

type WantValues

type WantValues struct {
	Key   []string
	Value interface{}
}

Jump to

Keyboard shortcuts

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