reflect: comment out all tests but keep imports

Этот коммит содержится в:
Damian Gryski 2023-03-22 14:08:49 -07:00 коммит произвёл Ron Evans
родитель c482d65397
коммит 35dcf135c0

Просмотреть файл

@ -10,8 +10,6 @@ import (
"flag" "flag"
"fmt" "fmt"
"go/token" "go/token"
"internal/goarch"
"internal/testenv"
"io" "io"
"math" "math"
"math/rand" "math/rand"
@ -31,6 +29,45 @@ import (
"unsafe" "unsafe"
) )
// keep imports
var (
_ = bytes.MinRead
_ = base64.StdPadding
_ = flag.ErrHelp
_ = fmt.Append
_ = token.LowestPrec
_ = io.EOF
_ = math.E
_ = rand.Int
_ = net.IPv4len
_ = os.PathSeparator
_ = example1.MyStruct{}
_ = example2.MyStruct{}
_ = Invalid // reflect
_ = runtime.Compiler
_ = sort.Find
_ = strconv.IntSize
_ = strings.Clone
_ = sync.NewCond
_ = atomic.AddInt32
_ = testing.T{}
_ = time.Now
_ = unsafe.Add(nil, 0)
)
var goarch = struct {
PtrSize uintptr
}{
PtrSize: unsafe.Sizeof(uintptr(0)),
}
var testenv = struct {
OptimizationOff func() bool
}{
OptimizationOff: func() bool { return false },
}
/*
var sink any var sink any
func TestBool(t *testing.T) { func TestBool(t *testing.T) {
@ -4156,7 +4193,7 @@ var convertTests = []struct {
} }
} }
} }
*/ */ /*
{V(int8(1)), V(int8(1))}, {V(int8(1)), V(int8(1))},
{V(int8(2)), V(uint8(2))}, {V(int8(2)), V(uint8(2))},
{V(uint8(3)), V(int8(3))}, {V(uint8(3)), V(int8(3))},
@ -8360,3 +8397,5 @@ func TestInitFuncTypes(t *testing.T) {
} }
wg.Wait() wg.Wait()
} }
*/