internal/cuetxtar: support shareID assertions in inline tests
This introduces the @test(shareID=<id>) directive
to inline assertions, verifying that two target
paths evaluate to the same underlying *adt.Vertex
without copying (structural sharing).
Signed-off-by: Marcel van Lohuizen <mpvl@gmail.com>
Change-Id: I907da15b35812684290b0ecd1840ca28276cac65
Reviewed-on: https://cue.gerrithub.io/c/cue-lang/cue/+/1234695
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>