forked from github/multus-cni
adding changing in glide yaml and vendor for network status features
This commit is contained in:
committed by
Kuralamudhan Ramakrishnan
parent
707007abba
commit
583cbe476a
18
vendor/github.com/modern-go/reflect2/tests/slice_bytes_test.go
generated
vendored
Normal file
18
vendor/github.com/modern-go/reflect2/tests/slice_bytes_test.go
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"github.com/modern-go/reflect2"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func Test_slice_bytes(t *testing.T) {
|
||||
t.Run("SetIndex", testOp(func(api reflect2.API) interface{} {
|
||||
obj := [][]byte{[]byte("hello"), []byte("world")}
|
||||
valType := api.TypeOf(obj).(reflect2.SliceType)
|
||||
elem1 := []byte("hi")
|
||||
valType.SetIndex(&obj, 0, &elem1)
|
||||
elem2 := []byte("there")
|
||||
valType.SetIndex(&obj, 1, &elem2)
|
||||
return obj
|
||||
}))
|
||||
}
|
Reference in New Issue
Block a user