aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2023-03-22 14:08:49 -0700
committerRon Evans <[email protected]>2023-03-25 13:57:00 +0100
commit35dcf135c0bbc0700a8c5c6380459b8b8f4f2a6d (patch)
tree1f655c61975b0a684118e2f5c14bd8c3570a1c69
parentc482d653974b1e40af4fce27f6cb4d81ac414d0d (diff)
downloadtinygo-35dcf135c0bbc0700a8c5c6380459b8b8f4f2a6d.tar.gz
tinygo-35dcf135c0bbc0700a8c5c6380459b8b8f4f2a6d.zip
reflect: comment out all tests but keep imports
-rw-r--r--src/reflect/all_test.go45
1 files changed, 42 insertions, 3 deletions
diff --git a/src/reflect/all_test.go b/src/reflect/all_test.go
index 28a764032..861a05327 100644
--- a/src/reflect/all_test.go
+++ b/src/reflect/all_test.go
@@ -10,8 +10,6 @@ import (
"flag"
"fmt"
"go/token"
- "internal/goarch"
- "internal/testenv"
"io"
"math"
"math/rand"
@@ -31,6 +29,45 @@ import (
"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
func TestBool(t *testing.T) {
@@ -4156,7 +4193,7 @@ var convertTests = []struct {
}
}
}
- */
+*/ /*
{V(int8(1)), V(int8(1))},
{V(int8(2)), V(uint8(2))},
{V(uint8(3)), V(int8(3))},
@@ -8360,3 +8397,5 @@ func TestInitFuncTypes(t *testing.T) {
}
wg.Wait()
}
+
+*/