Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadersMatch ¶
Types ¶
type ReaderLineReplacer ¶
ReaderLineReplacer receives an "actual" line, from an expected vs. actual test comparison, and optionally returns a new "actual" line value.
For example, if the actual values will change over time (e.g. "go <semver>" strings in new go.mod files), a ReaderLineReplacer can allow test fixtures to have out-dated semver values (which are not the SUT) by replacing the dynamic value with the expected static value.
The expectedName and actualName values are the reader (e.g. file) names.
Click to show internal directories.
Click to hide internal directories.