@@ -67,6 +67,7 @@ var titleTestCases = testcases{
67
67
func TestToTitle (t * testing.T ) {
68
68
for _ , test := range titleTestCases {
69
69
t .Run (test .input , func (t * testing.T ) {
70
+ t .Parallel ()
70
71
output := caps .ToTitle (test .input , test .opts ... )
71
72
if output != test .expected {
72
73
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
@@ -76,12 +77,14 @@ func TestToTitle(t *testing.T) {
76
77
77
78
for _ , test := range titleTestCases {
78
79
t .Run (test .input , func (t * testing.T ) {
80
+ t .Parallel ()
79
81
output := caps .ToTitle (test .input , test .opts ... )
80
82
if output != test .expected {
81
83
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
82
84
}
83
85
})
84
86
t .Run ("Caps::" + test .input , func (t * testing.T ) {
87
+ t .Parallel ()
85
88
c := caps .New (test .opts .toCapsOpts ())
86
89
output := c .ToTitle (test .input )
87
90
if output != test .expected {
@@ -110,12 +113,14 @@ var camelTestCases = testcases{
110
113
func TestToCamel (t * testing.T ) {
111
114
for _ , test := range camelTestCases {
112
115
t .Run (test .input , func (t * testing.T ) {
116
+ t .Parallel ()
113
117
output := caps .ToCamel (test .input , test .opts ... )
114
118
if output != test .expected {
115
119
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
116
120
}
117
121
})
118
122
t .Run ("Caps::" + test .input , func (t * testing.T ) {
123
+ t .Parallel ()
119
124
c := caps .New (test .opts .toCapsOpts ())
120
125
output := c .ToCamel (test .input )
121
126
if output != test .expected {
@@ -145,12 +150,14 @@ var lowerCamelTestCases = testcases{
145
150
func TestToLowerCamel (t * testing.T ) {
146
151
for _ , test := range lowerCamelTestCases {
147
152
t .Run (test .input , func (t * testing.T ) {
153
+ t .Parallel ()
148
154
output := caps .ToLowerCamel (test .input , test .opts ... )
149
155
if output != test .expected {
150
156
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
151
157
}
152
158
})
153
159
t .Run ("Caps::" + test .input , func (t * testing.T ) {
160
+ t .Parallel ()
154
161
c := caps .New (test .opts .toCapsOpts ())
155
162
output := c .ToLowerCamel (test .input )
156
163
if output != test .expected {
@@ -179,12 +186,14 @@ var kebabTestCases = testcases{
179
186
func TestToKebab (t * testing.T ) {
180
187
for _ , test := range kebabTestCases {
181
188
t .Run (test .input , func (t * testing.T ) {
189
+ t .Parallel ()
182
190
output := caps .ToKebab (test .input , test .opts ... )
183
191
if output != test .expected {
184
192
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
185
193
}
186
194
})
187
195
t .Run ("Caps::" + test .input , func (t * testing.T ) {
196
+ t .Parallel ()
188
197
c := caps .New (test .opts .toCapsOpts ())
189
198
output := c .ToKebab (test .input )
190
199
if output != test .expected {
@@ -213,12 +222,14 @@ var screamingKebabTestCases = testcases{
213
222
func TestToScreamingKebab (t * testing.T ) {
214
223
for _ , test := range screamingKebabTestCases {
215
224
t .Run (test .input , func (t * testing.T ) {
225
+ t .Parallel ()
216
226
output := caps .ToScreamingKebab (test .input , test .opts ... )
217
227
if output != test .expected {
218
228
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
219
229
}
220
230
})
221
231
t .Run ("Caps::" + test .input , func (t * testing.T ) {
232
+ t .Parallel ()
222
233
c := caps .New (test .opts .toCapsOpts ())
223
234
output := c .ToScreamingKebab (test .input )
224
235
if output != test .expected {
@@ -247,12 +258,14 @@ var snakeTestCases = testcases{
247
258
func TestToSnake (t * testing.T ) {
248
259
for _ , test := range snakeTestCases {
249
260
t .Run (test .input , func (t * testing.T ) {
261
+ t .Parallel ()
250
262
output := caps .ToSnake (test .input , test .opts ... )
251
263
if output != test .expected {
252
264
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
253
265
}
254
266
})
255
267
t .Run ("Caps::" + test .input , func (t * testing.T ) {
268
+ t .Parallel ()
256
269
c := caps .New (test .opts .toCapsOpts ())
257
270
output := c .ToSnake (test .input )
258
271
if output != test .expected {
@@ -281,12 +294,14 @@ var screamingSnakeTestCases = testcases{
281
294
func TestToScreamingSnake (t * testing.T ) {
282
295
for _ , test := range screamingSnakeTestCases {
283
296
t .Run (test .input , func (t * testing.T ) {
297
+ t .Parallel ()
284
298
output := caps .ToScreamingSnake (test .input , test .opts ... )
285
299
if output != test .expected {
286
300
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
287
301
}
288
302
})
289
303
t .Run ("Caps::" + test .input , func (t * testing.T ) {
304
+ t .Parallel ()
290
305
c := caps .New (test .opts .toCapsOpts ())
291
306
output := c .ToScreamingSnake (test .input )
292
307
if output != test .expected {
@@ -315,12 +330,14 @@ var dotNotationTestCases = testcases{
315
330
func TestToDotNotation (t * testing.T ) {
316
331
for _ , test := range dotNotationTestCases {
317
332
t .Run (test .input , func (t * testing.T ) {
333
+ t .Parallel ()
318
334
output := caps .ToDotNotation (test .input , test .opts ... )
319
335
if output != test .expected {
320
336
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
321
337
}
322
338
})
323
339
t .Run ("Caps::" + test .input , func (t * testing.T ) {
340
+ t .Parallel ()
324
341
c := caps .New (test .opts .toCapsOpts ())
325
342
output := c .ToDotNotation (test .input )
326
343
if output != test .expected {
@@ -349,12 +366,14 @@ var screamingDotNotationTestCases = testcases{
349
366
func TestToDelimited (t * testing.T ) {
350
367
for _ , test := range dotNotationTestCases {
351
368
t .Run (test .input , func (t * testing.T ) {
369
+ t .Parallel ()
352
370
output := caps .ToDelimited (test .input , "." , true , test .opts ... )
353
371
if output != test .expected {
354
372
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
355
373
}
356
374
})
357
375
t .Run ("Caps::" + test .input , func (t * testing.T ) {
376
+ t .Parallel ()
358
377
c := caps .New (test .opts .toCapsOpts ())
359
378
output := c .ToDelimited (test .input , "." , true )
360
379
if output != test .expected {
@@ -367,12 +386,14 @@ func TestToDelimited(t *testing.T) {
367
386
func TestToScreamingDotNotation (t * testing.T ) {
368
387
for _ , test := range screamingDotNotationTestCases {
369
388
t .Run (test .input , func (t * testing.T ) {
389
+ t .Parallel ()
370
390
output := caps .ToScreamingDotNotation (test .input , test .opts ... )
371
391
if output != test .expected {
372
392
t .Errorf ("expected \" %s\" , got \" %s\" " , test .expected , output )
373
393
}
374
394
})
375
395
t .Run ("Caps::" + test .input , func (t * testing.T ) {
396
+ t .Parallel ()
376
397
c := caps .New (test .opts .toCapsOpts ())
377
398
output := c .ToScreamingDotNotation (test .input )
378
399
if output != test .expected {
@@ -384,6 +405,7 @@ func TestToScreamingDotNotation(t *testing.T) {
384
405
385
406
func TestCapsAccessors (t * testing.T ) {
386
407
t .Run ("ReplaceStyle" , func (t * testing.T ) {
408
+ t .Parallel ()
387
409
c := caps .New ()
388
410
rs := c .ReplaceStyle ()
389
411
if rs != caps .ReplaceStyleScreaming {
@@ -400,6 +422,7 @@ func TestCapsAccessors(t *testing.T) {
400
422
}
401
423
})
402
424
t .Run ("NumberRules" , func (t * testing.T ) {
425
+ t .Parallel ()
403
426
c := caps .New ()
404
427
nr := c .NumberRules ()
405
428
if nr != nil {
@@ -414,6 +437,7 @@ func TestCapsAccessors(t *testing.T) {
414
437
}
415
438
})
416
439
t .Run ("AllowedSymbols" , func (t * testing.T ) {
440
+ t .Parallel ()
417
441
c := caps .New ()
418
442
as := c .AllowedSymbols ()
419
443
if as != "" {
0 commit comments