Documentation ¶
Overview ¶
Package fakeextractor provides a Extractor implementation to be used in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(name string, version int, requiredFiles []string, pathToNamesErr map[string]NamesErr) scalibrextractor.InventoryExtractor
New returns a fake extractor.
The extractor returns FileRequired(path) = true for any path in requiredFiles. The extractor returns the inventory and error from pathToNamesErr given the same path to Extract(...).
Types ¶
Click to show internal directories.
Click to hide internal directories.