mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-01 18:30:15 +00:00
Bulk move from k8s.io/kubectl
This commit is contained in:
16
vendor/github.com/modern-go/reflect2/tests/slice_string_test.go
generated
vendored
Normal file
16
vendor/github.com/modern-go/reflect2/tests/slice_string_test.go
generated
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
package tests
|
||||
|
||||
import (
|
||||
"testing"
|
||||
"github.com/modern-go/reflect2"
|
||||
)
|
||||
|
||||
func Test_slice_string(t *testing.T) {
|
||||
t.Run("SetIndex", testOp(func(api reflect2.API) interface{} {
|
||||
obj := []string{"hello", "world"}
|
||||
valType := api.TypeOf(obj).(reflect2.SliceType)
|
||||
valType.SetIndex(&obj, 0, "hi")
|
||||
valType.SetIndex(&obj, 1, "there")
|
||||
return obj
|
||||
}))
|
||||
}
|
||||
Reference in New Issue
Block a user