internal/cuetxtar: allow using a fallback golden set
This allows different implementations of the same functionality
to share the same golden file set, if overlapping.
This introduces a version type for the evaluator used by TestEvalAlpha.
TestEvalAlpha is added as a test case for this. As the version has no
effect as of now, it tests that the fallback mechanism works properly
for all current tests.
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I71484daa6eb3817e575d3ada2320e4608b2a0f17
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1167861
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>