Skip to content

Commit b6fd0c8

Browse files
committed
src/reflect: uncomment more tests that pass
1 parent c383a40 commit b6fd0c8

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

src/reflect/all_test.go

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,6 @@ func TestMapSetNil(t *testing.T) {
698698
}
699699
}
700700

701-
/*
702-
703701
func TestAll(t *testing.T) {
704702
testType(t, 1, TypeOf((int8)(0)), "int8")
705703
testType(t, 2, TypeOf((*int8)(nil)).Elem(), "int8")
@@ -747,8 +745,6 @@ func TestAll(t *testing.T) {
747745
testType(t, 14, typ, "[]uint32")
748746
}
749747

750-
*/
751-
752748
func TestInterfaceGet(t *testing.T) {
753749
var inter struct {
754750
E any
@@ -1272,8 +1268,6 @@ func TestDeepEqualUnexportedMap(t *testing.T) {
12721268
}
12731269
}
12741270

1275-
/*
1276-
12771271
var deepEqualPerfTests = []struct {
12781272
x, y any
12791273
}{
@@ -1339,8 +1333,6 @@ func TestDeepEqualAllocs(t *testing.T) {
13391333
}
13401334
}
13411335

1342-
*/
1343-
13441336
func check2ndField(x any, offs uintptr, t *testing.T) {
13451337
s := ValueOf(x)
13461338
f := s.Type().Field(1)
@@ -1600,7 +1592,8 @@ func TestIsZero(t *testing.T) {
16001592
*/
16011593
}
16021594

1603-
/*
1595+
// extra comment for gofmt
1596+
16041597
func TestInterfaceExtraction(t *testing.T) {
16051598
var s struct {
16061599
W io.Writer
@@ -1612,9 +1605,6 @@ func TestInterfaceExtraction(t *testing.T) {
16121605
t.Error("Interface() on interface: ", v, s.W)
16131606
}
16141607
}
1615-
1616-
*/
1617-
16181608
func TestNilPtrValueSub(t *testing.T) {
16191609
var pi *int
16201610
if pv := ValueOf(pi); pv.Elem().IsValid() {
@@ -3368,6 +3358,8 @@ func TestNestedMethods(t *testing.T) {
33683358
}
33693359
}
33703360
3361+
*/
3362+
33713363
type unexp struct{}
33723364

33733365
func (*unexp) f() (int32, int8) { return 7, 7 }
@@ -3379,8 +3371,6 @@ type unexpI interface {
33793371

33803372
var unexpi unexpI = new(unexp)
33813373

3382-
/*
3383-
33843374
func TestUnexportedMethods(t *testing.T) {
33853375
typ := TypeOf(unexpi)
33863376

@@ -3389,8 +3379,6 @@ func TestUnexportedMethods(t *testing.T) {
33893379
}
33903380
}
33913381

3392-
*/
3393-
33943382
type InnerInt struct {
33953383
X int
33963384
}
@@ -3432,6 +3420,8 @@ func TestEmbeddedMethods(t *testing.T) {
34323420
}
34333421
}
34343422
3423+
*/
3424+
34353425
type FuncDDD func(...any) error
34363426

34373427
func (f FuncDDD) M() {}
@@ -3443,6 +3433,7 @@ func TestNumMethodOnDDD(t *testing.T) {
34433433
}
34443434
}
34453435

3436+
/*
34463437
func TestPtrTo(t *testing.T) {
34473438
// This block of code means that the ptrToThis field of the
34483439
// reflect data for *unsafe.Pointer is non zero, see
@@ -3489,6 +3480,8 @@ func TestPtrToGC(t *testing.T) {
34893480
}
34903481
}
34913482
3483+
*/
3484+
34923485
func TestAddr(t *testing.T) {
34933486
var p struct {
34943487
X, Y int
@@ -3591,8 +3584,6 @@ func TestAllocations(t *testing.T) {
35913584
})
35923585
}
35933586

3594-
*/
3595-
35963587
func TestSmallNegativeInt(t *testing.T) {
35973588
i := int16(-1)
35983589
v := ValueOf(i)

0 commit comments

Comments
 (0)