|
|
@@ -19,6 +19,7 @@ const teststrucflexChanCap = 64
|
|
|
|
|
|
// Some unused types just stored here
|
|
|
type Bbool bool
|
|
|
+type Aarray [1]string
|
|
|
type Sstring string
|
|
|
type Sstructsmall struct {
|
|
|
A int
|
|
|
@@ -100,6 +101,8 @@ type TestStrucFlex struct {
|
|
|
Ui64array [4]uint64
|
|
|
Ui64slicearray []*[4]uint64
|
|
|
|
|
|
+ SintfAarray []interface{}
|
|
|
+
|
|
|
// make this a ptr, so that it could be set or not.
|
|
|
// for comparison (e.g. with msgp), give it a struct tag (so it is not inlined),
|
|
|
// make this one omitempty (so it is excluded if nil).
|
|
|
@@ -171,6 +174,7 @@ func newTestStrucFlex(depth, n int, bench, useInterface, useStringKeyOnly bool)
|
|
|
},
|
|
|
Ui64array: [4]uint64{4, 16, 64, 256},
|
|
|
ArrStrUi64T: [4]stringUint64T{{"4", 4}, {"3", 3}, {"2", 2}, {"1", 1}},
|
|
|
+ SintfAarray: []interface{}{Aarray{"s"}},
|
|
|
}
|
|
|
|
|
|
numChanSend := cap(ts.Chstr) / 4 // 8
|