this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

internal/tdtest: document how the name field is used

This detail wasn't clear from the doc comments.

Signed-off-by: Roger Peppe <rogpeppe@gmail.com>
Change-Id: I92f70df872244e6379692ddb756dbde1bd26ecd9
Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1170245
TryBot-Result: CUEcueckoo <cueckoo@cuelang.org>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
Unity-Result: CUE porcuepine <cue.porcuepine@gmail.com>

authored by

Roger Peppe and committed by
Daniel Martí
deab3074 4d2ba888

+2
+2
internal/tdtest/tdtest.go
··· 62 62 } 63 63 64 64 // Run runs the given function for each (selected) element in the table. 65 + // TC must be a struct type. If that has a string field named "name", 66 + // that value will be used to name the associated subtest. 65 67 func Run[TC any](t *testing.T, table []TC, fn func(t *T, tc *TC)) { 66 68 s := &set[TC]{ 67 69 t: t,