Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMockSBOMService ¶
func NewMockSBOMService(resp MockResponse, assertions ...func(r *http.Request)) *httptest.Server
func NewMockSBOMServiceMultiResponse ¶
func NewMockSBOMServiceMultiResponse(responses []MockResponse, assertions ...func(r *http.Request)) *httptest.Server
Types ¶
type MockResponse ¶
type MockResponse struct {
// contains filtered or unexported fields
}
func NewMockResponse ¶
func NewMockResponse(c string, b []byte, status int) MockResponse
type MockUVClient ¶
type MockUVClient struct {
ExportSBOMFunc func(inputDir string) (*scaplugin.Finding, error)
ShouldExportSBOMFunc func(inputDir string, logger *zerolog.Logger) bool
}
MockUVClient is a mock implementation of UVClient for testing
func (*MockUVClient) ExportSBOM ¶
func (m *MockUVClient) ExportSBOM(inputDir string) (*scaplugin.Finding, error)
func (*MockUVClient) ShouldExportSBOM ¶
func (m *MockUVClient) ShouldExportSBOM(inputDir string, logger *zerolog.Logger) bool
Click to show internal directories.
Click to hide internal directories.