Skip to content

Commit 9ff3fd8

Browse files
committed
Linting
1 parent a0fed88 commit 9ff3fd8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/apitypings/main_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
)
1111

1212
func TestGeneration(t *testing.T) {
13+
t.Parallel()
1314
files, err := os.ReadDir("testdata")
1415
require.NoError(t, err, "read dir")
1516

@@ -20,6 +21,7 @@ func TestGeneration(t *testing.T) {
2021
}
2122
f := f
2223
t.Run(f.Name(), func(t *testing.T) {
24+
t.Parallel()
2325
dir := filepath.Join(".", "testdata", f.Name())
2426
output, err := Generate("./" + dir)
2527
require.NoErrorf(t, err, "generate %q", dir)

scripts/apitypings/testdata/generics/generics.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type GenericFields[C comparable, A any, T Custom, S Single] struct {
2525
Comparable C `json:"comparable"`
2626
Any A `json:"any"`
2727

28-
Custom T `json:"custom"`
29-
Again T `json:"again"`
30-
SingleContraint S `json:"single_constraint"`
28+
Custom T `json:"custom"`
29+
Again T `json:"again"`
30+
SingleConstraint S `json:"single_constraint"`
3131
}

0 commit comments

Comments
 (0)