Documentation ¶
Overview ¶
Package fakeextractor provides a Extractor implementation to be used in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowUnexported = cmp.AllowUnexported(fakeExtractor{})
AllowUnexported is a utility function to be used with cmp.Diff to compare structs that contain the fake extractor.
Functions ¶
func New ¶
func New(name string, version int, requiredFiles []string, pathToNamesErr map[string]NamesErr) filesystem.Extractor
New returns a fake fakeExtractor.
The fakeExtractor returns FileRequired(path) = true for any path in requiredFiles. The fakeExtractor returns the inventory and error from pathToNamesErr given the same path to Extract(...).
Types ¶
Click to show internal directories.
Click to hide internal directories.