tools/fix: add inline @test framework
Add inline test framework in fixall_test.go that
runs @test assertions on both pre-fix and
post-fix archives to verify fixes preserve
semantics.
The idea: @test attributes get copied by the fix
the the new files as is.
By testing both in and out, we ensure that the
code generated by fix is correct.
Add @test(eq) assertions to aliasv2
for field aliases, value aliases, and __self
handling for demonstration.
Fix compile errors in aliasv2.txtar: add missing
variable definitions (x, name) for dynamic
fields, add references to unused aliases (Z,
OptField, ReqField, X, DynInterpAlias), fix
Inner.Leaf.value to Inner.deep.value.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: Id935408d9665283df4020ded2ca9d30f29037a07
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1236308
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>