|
9 | 9 | )
|
10 | 10 |
|
11 | 11 | func TestMaxTreap(t *testing.T) {
|
| 12 | + t.Parallel() |
| 13 | + |
12 | 14 | comp := treap.MaxTreap(treap.IntComparator)
|
13 | 15 |
|
14 | 16 | for _, tc := range []struct {
|
@@ -38,6 +40,8 @@ func TestMaxTreap(t *testing.T) {
|
38 | 40 | }
|
39 | 41 |
|
40 | 42 | func TestIntComparator(t *testing.T) {
|
| 43 | + t.Parallel() |
| 44 | + |
41 | 45 | for _, tc := range []struct {
|
42 | 46 | desc string
|
43 | 47 | test []interface{}
|
@@ -68,6 +72,8 @@ func TestIntComparator(t *testing.T) {
|
68 | 72 | }
|
69 | 73 |
|
70 | 74 | func TestInt8Comparator(t *testing.T) {
|
| 75 | + t.Parallel() |
| 76 | + |
71 | 77 | for _, tc := range []struct {
|
72 | 78 | desc string
|
73 | 79 | test []interface{}
|
@@ -98,6 +104,8 @@ func TestInt8Comparator(t *testing.T) {
|
98 | 104 | }
|
99 | 105 |
|
100 | 106 | func TestInt16Comparator(t *testing.T) {
|
| 107 | + t.Parallel() |
| 108 | + |
101 | 109 | for _, tc := range []struct {
|
102 | 110 | desc string
|
103 | 111 | test []interface{}
|
@@ -128,6 +136,8 @@ func TestInt16Comparator(t *testing.T) {
|
128 | 136 | }
|
129 | 137 |
|
130 | 138 | func TestInt32Comparator(t *testing.T) {
|
| 139 | + t.Parallel() |
| 140 | + |
131 | 141 | for _, tc := range []struct {
|
132 | 142 | desc string
|
133 | 143 | test []interface{}
|
@@ -158,6 +168,8 @@ func TestInt32Comparator(t *testing.T) {
|
158 | 168 | }
|
159 | 169 |
|
160 | 170 | func TestInt64Comparator(t *testing.T) {
|
| 171 | + t.Parallel() |
| 172 | + |
161 | 173 | for _, tc := range []struct {
|
162 | 174 | desc string
|
163 | 175 | test []interface{}
|
@@ -188,6 +200,8 @@ func TestInt64Comparator(t *testing.T) {
|
188 | 200 | }
|
189 | 201 |
|
190 | 202 | func TestStringComparator(t *testing.T) {
|
| 203 | + t.Parallel() |
| 204 | + |
191 | 205 | for _, tc := range []struct {
|
192 | 206 | desc string
|
193 | 207 | test []interface{}
|
@@ -221,6 +235,8 @@ func TestStringComparator(t *testing.T) {
|
221 | 235 | }
|
222 | 236 |
|
223 | 237 | func TestByteComparator(t *testing.T) {
|
| 238 | + t.Parallel() |
| 239 | + |
224 | 240 | for _, tc := range []struct {
|
225 | 241 | desc string
|
226 | 242 | test []interface{}
|
@@ -254,6 +270,7 @@ func TestByteComparator(t *testing.T) {
|
254 | 270 | }
|
255 | 271 |
|
256 | 272 | func TestTimeComparator(t *testing.T) {
|
| 273 | + t.Parallel() |
257 | 274 |
|
258 | 275 | t0 := time.Now()
|
259 | 276 |
|
@@ -284,6 +301,8 @@ func TestTimeComparator(t *testing.T) {
|
284 | 301 | }
|
285 | 302 |
|
286 | 303 | func TestUIntComparator(t *testing.T) {
|
| 304 | + t.Parallel() |
| 305 | + |
287 | 306 | for _, tc := range []struct {
|
288 | 307 | desc string
|
289 | 308 | test []interface{}
|
@@ -314,6 +333,8 @@ func TestUIntComparator(t *testing.T) {
|
314 | 333 | }
|
315 | 334 |
|
316 | 335 | func TestUInt8Comparator(t *testing.T) {
|
| 336 | + t.Parallel() |
| 337 | + |
317 | 338 | for _, tc := range []struct {
|
318 | 339 | desc string
|
319 | 340 | test []interface{}
|
@@ -344,6 +365,8 @@ func TestUInt8Comparator(t *testing.T) {
|
344 | 365 | }
|
345 | 366 |
|
346 | 367 | func TestUInt16Comparator(t *testing.T) {
|
| 368 | + t.Parallel() |
| 369 | + |
347 | 370 | for _, tc := range []struct {
|
348 | 371 | desc string
|
349 | 372 | test []interface{}
|
@@ -374,6 +397,8 @@ func TestUInt16Comparator(t *testing.T) {
|
374 | 397 | }
|
375 | 398 |
|
376 | 399 | func TestUInt32Comparator(t *testing.T) {
|
| 400 | + t.Parallel() |
| 401 | + |
377 | 402 | for _, tc := range []struct {
|
378 | 403 | desc string
|
379 | 404 | test []interface{}
|
@@ -404,6 +429,8 @@ func TestUInt32Comparator(t *testing.T) {
|
404 | 429 | }
|
405 | 430 |
|
406 | 431 | func TestUInt64Comparator(t *testing.T) {
|
| 432 | + t.Parallel() |
| 433 | + |
407 | 434 | for _, tc := range []struct {
|
408 | 435 | desc string
|
409 | 436 | test []interface{}
|
@@ -434,6 +461,8 @@ func TestUInt64Comparator(t *testing.T) {
|
434 | 461 | }
|
435 | 462 |
|
436 | 463 | func TestFloat32Comparator(t *testing.T) {
|
| 464 | + t.Parallel() |
| 465 | + |
437 | 466 | for _, tc := range []struct {
|
438 | 467 | desc string
|
439 | 468 | test []interface{}
|
@@ -464,6 +493,8 @@ func TestFloat32Comparator(t *testing.T) {
|
464 | 493 | }
|
465 | 494 |
|
466 | 495 | func TestFloat64Comparator(t *testing.T) {
|
| 496 | + t.Parallel() |
| 497 | + |
467 | 498 | for _, tc := range []struct {
|
468 | 499 | desc string
|
469 | 500 | test []interface{}
|
|
0 commit comments