Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FakeBasicXrayResults = []services.ScanResponse{ { ScanId: "scanId_1", Vulnerabilities: []services.Vulnerability{ {IssueId: "issueId_1", Technology: coreutils.Pipenv.ToString(), Cves: []services.Cve{{Id: "testCve1"}, {Id: "testCve2"}, {Id: "testCve3"}}, Components: map[string]services.Component{"issueId_1_direct_dependency": {}, "issueId_3_direct_dependency": {}}}, }, Violations: []services.Violation{ {IssueId: "issueId_2", Technology: coreutils.Pipenv.ToString(), Cves: []services.Cve{{Id: "testCve4"}, {Id: "testCve5"}}, Components: map[string]services.Component{"issueId_2_direct_dependency": {}, "issueId_4_direct_dependency": {}}}, }, }, }
View Source
var FakeServerDetails = config.ServerDetails{
Url: "platformUrl",
Password: "password",
User: "user",
}
View Source
var (
SkippedDirs = []string{"**/*test*/**", "**/*venv*/**", "**/*node_modules*/**", "**/*target*/**"}
)
Functions ¶
func GetTestDataPath ¶
func GetTestDataPath() string
Types ¶
type JasScanner ¶
type JasScanner struct { ConfigFileName string ResultsFileName string AnalyzerManager utils.AnalyzerManager ServerDetails *config.ServerDetails WorkingDirs []string ScannerDirCleanupFunc func() error }
func InitJasTest ¶
func InitJasTest(t *testing.T, workingDirs ...string) (*JasScanner, func())
func NewJasScanner ¶
func NewJasScanner(workingDirs []string, serverDetails *config.ServerDetails, multiScanId string) (scanner *JasScanner, err error)
func (*JasScanner) Run ¶
func (a *JasScanner) Run(scannerCmd ScannerCmd) (err error)
type ScannerCmd ¶
Click to show internal directories.
Click to hide internal directories.