Documentation
¶
Overview ¶
Package fake provides a conflict.Analyzer that decorates an existing analyzer: it delegates to the wrapped implementation for the happy path, but injects an error when a caller-supplied predicate matches.
Unlike the change-facing fakes, Analyze operates on batches — it never sees change URIs — so error injection is predicate-driven rather than marker-driven. To exercise the analyzer's error path in e2e, route a queue to an analyzer built with a failing predicate (e.g. FailAlways) via the queue wiring. It is intended for examples and tests only, never production.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FailAlways ¶
FailAlways is a FailOn that injects an error on every Analyze call.
Types ¶
Click to show internal directories.
Click to hide internal directories.