Skip to content

Commit bfa250d

Browse files
committed
internal/cuetxtar: report full result for cuetxtar test failures
This makes it easier to see the full string in order to (for example) paste it into the test data. Signed-off-by: Roger Peppe <[email protected]> Change-Id: I2897e7657dd1a7c53d3799c6c2d9eed556c8af5a Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1168507 Reviewed-by: Paul Jolly <[email protected]> TryBot-Result: CUEcueckoo <[email protected]> Unity-Result: CUE porcuepine <[email protected]>
1 parent 551fe68 commit bfa250d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/cuetxtar/txtar.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,9 @@ func (x *TxTarTest) Run(t *testing.T, f func(tc *Test)) {
434434

435435
t.Errorf("result for %s differs: (-want +got)\n%s",
436436
sub.name,
437-
cmp.Diff(string(gold.Data), string(result)))
437+
cmp.Diff(string(gold.Data), string(result)),
438+
)
439+
t.Errorf("actual result: %q", result)
438440
}
439441

440442
// Add remaining unrelated files, ignoring files that were already

0 commit comments

Comments
 (0)