Documentation
¶
Overview ¶
Package fakedetector provides a Detector implementation to be used in tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWithOptions ¶ added in v0.1.1
NewWithOptions creates a new fake detector with its properties set according to opts.
Types ¶
type Option ¶ added in v0.1.1
type Option func(*fakeDetector)
Option is an option that can be set when creating a new fake detector
func WithErr ¶ added in v0.1.1
WithErr sets the fake detector's error that is returned when Scan() is called.
func WithFinding ¶ added in v0.1.1
WithFinding sets the fake detector's finding that is returned when Scan() is called.
func WithRequiredExtractors ¶ added in v0.1.1
WithRequiredExtractors sets the fake detector's required extractors.
func WithVersion ¶ added in v0.1.1
WithVersion sets the fake detector's version.
Click to show internal directories.
Click to hide internal directories.