Skip to content

Commit 4508cbd

Browse files
committed
all: add t.Parallel
Signed-off-by: Koichi Shiraishi <[email protected]>
1 parent f7e6b9c commit 4508cbd

24 files changed

+945
-67
lines changed

base_gojay_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,13 @@ import (
1313
)
1414

1515
func TestCancelParams(t *testing.T) {
16+
t.Parallel()
17+
1618
testCancelParams(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
1719
}
1820

1921
func TestProgressParams(t *testing.T) {
22+
t.Parallel()
23+
2024
testProgressParams(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
2125
}

base_json_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,13 @@ import (
1212
)
1313

1414
func TestCancelParams(t *testing.T) {
15+
t.Parallel()
16+
1517
testCancelParams(t, json.Marshal, json.Unmarshal)
1618
}
1719

1820
func TestProgressParams(t *testing.T) {
21+
t.Parallel()
22+
1923
testProgressParams(t, json.Marshal, json.Unmarshal)
2024
}

basic_gojay_test.go

Lines changed: 89 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -12,76 +12,152 @@ import (
1212
"github.com/francoispqt/gojay"
1313
)
1414

15-
func TestPosition(t *testing.T) { testPosition(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
15+
func TestPosition(t *testing.T) {
16+
t.Parallel()
1617

17-
func TestRange(t *testing.T) { testRange(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
18+
testPosition(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
19+
}
20+
21+
func TestRange(t *testing.T) {
22+
t.Parallel()
23+
24+
testRange(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
25+
}
26+
27+
func TestLocation(t *testing.T) {
28+
t.Parallel()
1829

19-
func TestLocation(t *testing.T) { testLocation(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
30+
testLocation(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
31+
}
32+
33+
func TestLocationLink(t *testing.T) {
34+
t.Parallel()
2035

21-
func TestLocationLink(t *testing.T) { testLocationLink(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
36+
testLocationLink(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
37+
}
2238

23-
func TestCodeDescription(t *testing.T) { testCodeDescription(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
39+
func TestCodeDescription(t *testing.T) {
40+
t.Parallel()
41+
42+
testCodeDescription(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
43+
}
2444

25-
func TestCommand(t *testing.T) { testCommand(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
45+
func TestCommand(t *testing.T) {
46+
t.Parallel()
47+
48+
testCommand(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
49+
}
2650

2751
func TestChangeAnnotation(t *testing.T) {
52+
t.Parallel()
53+
2854
testChangeAnnotation(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
2955
}
3056

3157
func TestAnnotatedTextEdit(t *testing.T) {
58+
t.Parallel()
59+
3260
testAnnotatedTextEdit(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
3361
}
3462

35-
func TestTextEdit(t *testing.T) { testTextEdit(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
63+
func TestTextEdit(t *testing.T) {
64+
t.Parallel()
65+
66+
testTextEdit(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
67+
}
3668

3769
func TestTextDocumentEdit(t *testing.T) {
70+
t.Parallel()
71+
3872
testTextDocumentEdit(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
3973
}
4074

4175
func TestCreateFileOptions(t *testing.T) {
76+
t.Parallel()
77+
4278
testCreateFileOptions(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
4379
}
4480

45-
func TestCreateFile(t *testing.T) { testCreateFile(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
81+
func TestCreateFile(t *testing.T) {
82+
t.Parallel()
83+
84+
testCreateFile(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
85+
}
4686

4787
func TestRenameFileOptions(t *testing.T) {
88+
t.Parallel()
89+
4890
testRenameFileOptions(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
4991
}
5092

51-
func TestRenameFile(t *testing.T) { testRenameFile(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
93+
func TestRenameFile(t *testing.T) {
94+
t.Parallel()
95+
96+
testRenameFile(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
97+
}
5298

5399
func TestDeleteFileOptions(t *testing.T) {
100+
t.Parallel()
101+
54102
testDeleteFileOptions(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
55103
}
56104

57-
func TestDeleteFile(t *testing.T) { testDeleteFile(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
105+
func TestDeleteFile(t *testing.T) {
106+
t.Parallel()
58107

59-
func TestWorkspaceEdit(t *testing.T) { testWorkspaceEdit(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
108+
testDeleteFile(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
109+
}
110+
111+
func TestWorkspaceEdit(t *testing.T) {
112+
t.Parallel()
113+
114+
testWorkspaceEdit(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
115+
}
60116

61117
func TestTextDocumentIdentifier(t *testing.T) {
118+
t.Parallel()
119+
62120
testTextDocumentIdentifier(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
63121
}
64122

65123
func TestTextDocumentItem(t *testing.T) {
124+
t.Parallel()
125+
66126
testTextDocumentItem(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
67127
}
68128

69129
func TestVersionedTextDocumentIdentifier(t *testing.T) {
130+
t.Parallel()
131+
70132
testVersionedTextDocumentIdentifier(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
71133
}
72134

73135
func TestOptionalVersionedTextDocumentIdentifier(t *testing.T) {
136+
t.Parallel()
137+
74138
testOptionalVersionedTextDocumentIdentifier(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
75139
}
76140

77141
func TestTextDocumentPositionParams(t *testing.T) {
142+
t.Parallel()
143+
78144
testTextDocumentPositionParams(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
79145
}
80146

81-
func TestDocumentFilter(t *testing.T) { testDocumentFilter(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
147+
func TestDocumentFilter(t *testing.T) {
148+
t.Parallel()
149+
150+
testDocumentFilter(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
151+
}
82152

83153
func TestDocumentSelector(t *testing.T) {
154+
t.Parallel()
155+
84156
testDocumentSelector(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
85157
}
86158

87-
func TestMarkupContent(t *testing.T) { testMarkupContent(t, gojay.Marshal, gojay.Unsafe.Unmarshal) }
159+
func TestMarkupContent(t *testing.T) {
160+
t.Parallel()
161+
162+
testMarkupContent(t, gojay.Marshal, gojay.Unsafe.Unmarshal)
163+
}

basic_json_test.go

Lines changed: 113 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,60 +11,152 @@ import (
1111
"testing"
1212
)
1313

14-
func TestPosition(t *testing.T) { testPosition(t, json.Marshal, json.Unmarshal) }
14+
func TestPosition(t *testing.T) {
15+
t.Parallel()
1516

16-
func TestRange(t *testing.T) { testRange(t, json.Marshal, json.Unmarshal) }
17+
testPosition(t, json.Marshal, json.Unmarshal)
18+
}
19+
20+
func TestRange(t *testing.T) {
21+
t.Parallel()
22+
23+
testRange(t, json.Marshal, json.Unmarshal)
24+
}
25+
26+
func TestLocation(t *testing.T) {
27+
t.Parallel()
28+
29+
testLocation(t, json.Marshal, json.Unmarshal)
30+
}
31+
32+
func TestLocationLink(t *testing.T) {
33+
t.Parallel()
34+
35+
testLocationLink(t, json.Marshal, json.Unmarshal)
36+
}
37+
38+
func TestCodeDescription(t *testing.T) {
39+
t.Parallel()
40+
41+
testCodeDescription(t, json.Marshal, json.Unmarshal)
42+
}
43+
44+
func TestCommand(t *testing.T) {
45+
t.Parallel()
46+
47+
testCommand(t, json.Marshal, json.Unmarshal)
48+
}
49+
50+
func TestChangeAnnotation(t *testing.T) {
51+
t.Parallel()
52+
53+
testChangeAnnotation(t, json.Marshal, json.Unmarshal)
54+
}
55+
56+
func TestAnnotatedTextEdit(t *testing.T) {
57+
t.Parallel()
58+
59+
testAnnotatedTextEdit(t, json.Marshal, json.Unmarshal)
60+
}
61+
62+
func TestTextEdit(t *testing.T) {
63+
t.Parallel()
1764

18-
func TestLocation(t *testing.T) { testLocation(t, json.Marshal, json.Unmarshal) }
65+
testTextEdit(t, json.Marshal, json.Unmarshal)
66+
}
67+
68+
func TestTextDocumentEdit(t *testing.T) {
69+
t.Parallel()
70+
71+
testTextDocumentEdit(t, json.Marshal, json.Unmarshal)
72+
}
1973

20-
func TestLocationLink(t *testing.T) { testLocationLink(t, json.Marshal, json.Unmarshal) }
74+
func TestCreateFileOptions(t *testing.T) {
75+
t.Parallel()
2176

22-
func TestCodeDescription(t *testing.T) { testCodeDescription(t, json.Marshal, json.Unmarshal) }
77+
testCreateFileOptions(t, json.Marshal, json.Unmarshal)
78+
}
2379

24-
func TestCommand(t *testing.T) { testCommand(t, json.Marshal, json.Unmarshal) }
80+
func TestCreateFile(t *testing.T) {
81+
t.Parallel()
2582

26-
func TestChangeAnnotation(t *testing.T) { testChangeAnnotation(t, json.Marshal, json.Unmarshal) }
83+
testCreateFile(t, json.Marshal, json.Unmarshal)
84+
}
2785

28-
func TestAnnotatedTextEdit(t *testing.T) { testAnnotatedTextEdit(t, json.Marshal, json.Unmarshal) }
86+
func TestRenameFileOptions(t *testing.T) {
87+
t.Parallel()
2988

30-
func TestTextEdit(t *testing.T) { testTextEdit(t, json.Marshal, json.Unmarshal) }
89+
testRenameFileOptions(t, json.Marshal, json.Unmarshal)
90+
}
3191

32-
func TestTextDocumentEdit(t *testing.T) { testTextDocumentEdit(t, json.Marshal, json.Unmarshal) }
92+
func TestRenameFile(t *testing.T) {
93+
t.Parallel()
3394

34-
func TestCreateFileOptions(t *testing.T) { testCreateFileOptions(t, json.Marshal, json.Unmarshal) }
95+
testRenameFile(t, json.Marshal, json.Unmarshal)
96+
}
3597

36-
func TestCreateFile(t *testing.T) { testCreateFile(t, json.Marshal, json.Unmarshal) }
98+
func TestDeleteFileOptions(t *testing.T) {
99+
t.Parallel()
37100

38-
func TestRenameFileOptions(t *testing.T) { testRenameFileOptions(t, json.Marshal, json.Unmarshal) }
101+
testDeleteFileOptions(t, json.Marshal, json.Unmarshal)
102+
}
39103

40-
func TestRenameFile(t *testing.T) { testRenameFile(t, json.Marshal, json.Unmarshal) }
104+
func TestDeleteFile(t *testing.T) {
105+
t.Parallel()
41106

42-
func TestDeleteFileOptions(t *testing.T) { testDeleteFileOptions(t, json.Marshal, json.Unmarshal) }
107+
testDeleteFile(t, json.Marshal, json.Unmarshal)
108+
}
43109

44-
func TestDeleteFile(t *testing.T) { testDeleteFile(t, json.Marshal, json.Unmarshal) }
110+
func TestWorkspaceEdit(t *testing.T) {
111+
t.Parallel()
45112

46-
func TestWorkspaceEdit(t *testing.T) { testWorkspaceEdit(t, json.Marshal, json.Unmarshal) }
113+
testWorkspaceEdit(t, json.Marshal, json.Unmarshal)
114+
}
47115

48116
func TestTextDocumentIdentifier(t *testing.T) {
117+
t.Parallel()
118+
49119
testTextDocumentIdentifier(t, json.Marshal, json.Unmarshal)
50120
}
51121

52-
func TestTextDocumentItem(t *testing.T) { testTextDocumentItem(t, json.Marshal, json.Unmarshal) }
122+
func TestTextDocumentItem(t *testing.T) {
123+
t.Parallel()
124+
125+
testTextDocumentItem(t, json.Marshal, json.Unmarshal)
126+
}
53127

54128
func TestVersionedTextDocumentIdentifier(t *testing.T) {
129+
t.Parallel()
130+
55131
testVersionedTextDocumentIdentifier(t, json.Marshal, json.Unmarshal)
56132
}
57133

58134
func TestOptionalVersionedTextDocumentIdentifier(t *testing.T) {
135+
t.Parallel()
136+
59137
testOptionalVersionedTextDocumentIdentifier(t, json.Marshal, json.Unmarshal)
60138
}
61139

62140
func TestTextDocumentPositionParams(t *testing.T) {
141+
t.Parallel()
142+
63143
testTextDocumentPositionParams(t, json.Marshal, json.Unmarshal)
64144
}
65145

66-
func TestDocumentFilter(t *testing.T) { testDocumentFilter(t, json.Marshal, json.Unmarshal) }
146+
func TestDocumentFilter(t *testing.T) {
147+
t.Parallel()
67148

68-
func TestDocumentSelector(t *testing.T) { testDocumentSelector(t, json.Marshal, json.Unmarshal) }
149+
testDocumentFilter(t, json.Marshal, json.Unmarshal)
150+
}
69151

70-
func TestMarkupContent(t *testing.T) { testMarkupContent(t, json.Marshal, json.Unmarshal) }
152+
func TestDocumentSelector(t *testing.T) {
153+
t.Parallel()
154+
155+
testDocumentSelector(t, json.Marshal, json.Unmarshal)
156+
}
157+
158+
func TestMarkupContent(t *testing.T) {
159+
t.Parallel()
160+
161+
testMarkupContent(t, json.Marshal, json.Unmarshal)
162+
}

0 commit comments

Comments
 (0)