5func TestChooseDisplayName(t *testing.T) {
6 for _, tt := range []struct {
12 label: "test-function",
13 functionName: "tailscale.com/wgengine/magicsock.TestNetworkDownSendErrors",
14 displayName: "TestNetworkDownSendErrors",
17 label: "test-function-with-parameters",
18 functionName: "tailscale.com/tstest/integration.TestOneNodeUpAuth.func1",
19 displayName: "TestOneNodeUpAuth",
22 t.Run(tt.label, func(t *testing.T) {
23 if got := chooseDisplayName(tt.functionName); got != tt.displayName {
24 t.Fatalf("wanted: %s, got: %s", tt.displayName, got)