aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorDamian Gryski <[email protected]>2023-03-22 14:48:44 -0700
committerRon Evans <[email protected]>2023-03-25 13:57:00 +0100
commit45c916f5c0121b79caa781694589a0744f778184 (patch)
tree2a7abacba2f81050fa99859dcb0432b89bd04606 /src
parent688a5dbf8da69cff85db2666ae667860df4b3625 (diff)
downloadtinygo-45c916f5c0121b79caa781694589a0744f778184.tar.gz
tinygo-45c916f5c0121b79caa781694589a0744f778184.zip
reflect: rename tests in value_test to avoid conflicts upstream tests
Diffstat (limited to 'src')
-rw-r--r--src/reflect/value_test.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/reflect/value_test.go b/src/reflect/value_test.go
index 1074a1668..56a6e54c9 100644
--- a/src/reflect/value_test.go
+++ b/src/reflect/value_test.go
@@ -7,7 +7,7 @@ import (
"testing"
)
-func TestIndirectPointers(t *testing.T) {
+func TestTinyIndirectPointers(t *testing.T) {
var m = map[string]int{}
m["x"] = 1
@@ -33,7 +33,7 @@ func TestIndirectPointers(t *testing.T) {
}
}
-func TestMap(t *testing.T) {
+func TestTinyMap(t *testing.T) {
m := make(map[string]int)
@@ -135,7 +135,7 @@ func TestMap(t *testing.T) {
}
}
-func TestSlice(t *testing.T) {
+func TestTinySlice(t *testing.T) {
s := []int{0, 10, 20}
refs := ValueOf(s)
@@ -202,7 +202,7 @@ func TestSlice(t *testing.T) {
}
}
-func TestBytes(t *testing.T) {
+func TestTinyBytes(t *testing.T) {
s := []byte("abcde")
refs := ValueOf(s)
@@ -233,7 +233,7 @@ func TestBytes(t *testing.T) {
}
}
-func TestNamedTypes(t *testing.T) {
+func TestTinyNamedTypes(t *testing.T) {
type namedString string
named := namedString("foo")
@@ -287,7 +287,7 @@ func TestNamedTypes(t *testing.T) {
v.Set(n)
}
-func TestStruct(t *testing.T) {
+func TestTinyStruct(t *testing.T) {
type barStruct struct {
QuxString string
BazInt int
@@ -324,7 +324,7 @@ func TestStruct(t *testing.T) {
}
}
-func TestZero(t *testing.T) {
+func TestTinyZero(t *testing.T) {
s := "hello, world"
var sptr *string = &s
v := ValueOf(&sptr).Elem()
@@ -358,7 +358,7 @@ func addrSetInt(intf interface{}) {
*ptr = 112358
}
-func TestAddr(t *testing.T) {
+func TestTinyAddr(t *testing.T) {
var n uint64
addrDecode(&n)
if n != 112358 {
@@ -371,7 +371,7 @@ func TestAddr(t *testing.T) {
}
}
-func TestNilType(t *testing.T) {
+func TestTinyNilType(t *testing.T) {
var a any = nil
typ := TypeOf(a)
if typ != nil {
@@ -379,7 +379,7 @@ func TestNilType(t *testing.T) {
}
}
-func TestSetBytes(t *testing.T) {
+func TestTinySetBytes(t *testing.T) {
var b []byte
refb := ValueOf(&b).Elem()
s := []byte("hello")
@@ -417,7 +417,7 @@ func (m *methodStruct) pointerMethod3() int {
return m.i
}
-func TestNumMethods(t *testing.T) {
+func TestTinyNumMethods(t *testing.T) {
refptrt := TypeOf(&methodStruct{})
if got, want := refptrt.NumMethod(), 2+3; got != want {
t.Errorf("Pointer Methods=%v, want %v", got, want)