@@ -698,8 +698,6 @@ func TestMapSetNil(t *testing.T) {
698
698
}
699
699
}
700
700
701
- /*
702
-
703
701
func TestAll (t * testing.T ) {
704
702
testType (t , 1 , TypeOf ((int8 )(0 )), "int8" )
705
703
testType (t , 2 , TypeOf ((* int8 )(nil )).Elem (), "int8" )
@@ -747,8 +745,6 @@ func TestAll(t *testing.T) {
747
745
testType (t , 14 , typ , "[]uint32" )
748
746
}
749
747
750
- */
751
-
752
748
func TestInterfaceGet (t * testing.T ) {
753
749
var inter struct {
754
750
E any
@@ -1272,8 +1268,6 @@ func TestDeepEqualUnexportedMap(t *testing.T) {
1272
1268
}
1273
1269
}
1274
1270
1275
- /*
1276
-
1277
1271
var deepEqualPerfTests = []struct {
1278
1272
x , y any
1279
1273
}{
@@ -1339,8 +1333,6 @@ func TestDeepEqualAllocs(t *testing.T) {
1339
1333
}
1340
1334
}
1341
1335
1342
- */
1343
-
1344
1336
func check2ndField (x any , offs uintptr , t * testing.T ) {
1345
1337
s := ValueOf (x )
1346
1338
f := s .Type ().Field (1 )
@@ -1600,7 +1592,8 @@ func TestIsZero(t *testing.T) {
1600
1592
*/
1601
1593
}
1602
1594
1603
- /*
1595
+ // extra comment for gofmt
1596
+
1604
1597
func TestInterfaceExtraction (t * testing.T ) {
1605
1598
var s struct {
1606
1599
W io.Writer
@@ -1612,9 +1605,6 @@ func TestInterfaceExtraction(t *testing.T) {
1612
1605
t .Error ("Interface() on interface: " , v , s .W )
1613
1606
}
1614
1607
}
1615
-
1616
- */
1617
-
1618
1608
func TestNilPtrValueSub (t * testing.T ) {
1619
1609
var pi * int
1620
1610
if pv := ValueOf (pi ); pv .Elem ().IsValid () {
@@ -3368,6 +3358,8 @@ func TestNestedMethods(t *testing.T) {
3368
3358
}
3369
3359
}
3370
3360
3361
+ */
3362
+
3371
3363
type unexp struct {}
3372
3364
3373
3365
func (* unexp ) f () (int32 , int8 ) { return 7 , 7 }
@@ -3379,8 +3371,6 @@ type unexpI interface {
3379
3371
3380
3372
var unexpi unexpI = new (unexp )
3381
3373
3382
- /*
3383
-
3384
3374
func TestUnexportedMethods (t * testing.T ) {
3385
3375
typ := TypeOf (unexpi )
3386
3376
@@ -3389,8 +3379,6 @@ func TestUnexportedMethods(t *testing.T) {
3389
3379
}
3390
3380
}
3391
3381
3392
- */
3393
-
3394
3382
type InnerInt struct {
3395
3383
X int
3396
3384
}
@@ -3432,6 +3420,8 @@ func TestEmbeddedMethods(t *testing.T) {
3432
3420
}
3433
3421
}
3434
3422
3423
+ */
3424
+
3435
3425
type FuncDDD func (... any ) error
3436
3426
3437
3427
func (f FuncDDD ) M () {}
@@ -3443,6 +3433,7 @@ func TestNumMethodOnDDD(t *testing.T) {
3443
3433
}
3444
3434
}
3445
3435
3436
+ /*
3446
3437
func TestPtrTo(t *testing.T) {
3447
3438
// This block of code means that the ptrToThis field of the
3448
3439
// reflect data for *unsafe.Pointer is non zero, see
@@ -3489,6 +3480,8 @@ func TestPtrToGC(t *testing.T) {
3489
3480
}
3490
3481
}
3491
3482
3483
+ */
3484
+
3492
3485
func TestAddr (t * testing.T ) {
3493
3486
var p struct {
3494
3487
X , Y int
@@ -3591,8 +3584,6 @@ func TestAllocations(t *testing.T) {
3591
3584
})
3592
3585
}
3593
3586
3594
- */
3595
-
3596
3587
func TestSmallNegativeInt (t * testing.T ) {
3597
3588
i := int16 (- 1 )
3598
3589
v := ValueOf (i )
0 commit comments