HintInference Module
Functions and values
| Function or value |
Description
|
Full Usage:
HintInference.dedupePreservingOrder hints
Parameters:
string list
-
The candidate hints.
Returns: string list
The de-duplicated hints in first-seen order.
|
Removes duplicate hints while keeping the first occurrence order.
|
Full Usage:
HintInference.inferHints report
Parameters:
TestifyFailureReport
-
The failure report to inspect.
Returns: string list
The resolved inferred hints in stable order.
|
Infers hints from the currently configured hint rules and hint packs.
This uses the active globally configured
Example
val hints: obj
|
Full Usage:
HintInference.normalizeHintCandidate hint
Parameters:
string option
-
The optional hint candidate.
Returns: string option
A cleaned hint or None when the candidate should be ignored.
|
Normalizes one optional hint candidate by trimming and dropping empty placeholder values.
|
Full Usage:
HintInference.normalizeHints hints
Parameters:
string list
Returns: string list
|
|
Full Usage:
HintInference.withResolvedHints report
Parameters:
TestifyFailureReport
-
The failure report to enrich.
Returns: TestifyFailureReport
A copy of report whose Hints field contains resolved hints.
|
Adds normalized explicit and inferred hints back onto a failure report.
|
testify