internal/cuetxtar: add hint= flag and unknown-flag validation to @test directives
All @test directives that can fail now accept a
guidance="hint" key that is logged (via t.Log) after
each assertion failure. Intended as guidance for
automated tools such as AI assistants.
Unknown key= flags now cause a parse error for
directives that do not have their own flag parser
(eq, leq, kind, closed, debugCheck). Directives
with custom parsers (err, todo, skip, shareID)
validate their own flags; err now also rejects
unknown keys.
Also:
- pos= in parsePosSpecs now uses strings.SplitSeq
for consistency with parseArgsList
- Clarify at= subPA copy: comment why any=false
and at field is intentionally omitted
- Update v0.7errorprop.txtar to inline @test format
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I91907be5b55bec56b9758d56b44a200be9c7b8ad
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1234946
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>