Ensure the ptr is pointing to reflect.Slice in ExtractList
This commit is contained in:
@@ -86,14 +86,14 @@ func TestExtractListGeneric(t *testing.T) {
|
||||
}
|
||||
|
||||
type fakePtrInterfaceList struct {
|
||||
Items []*runtime.Object
|
||||
Items *[]runtime.Object
|
||||
}
|
||||
|
||||
func (f fakePtrInterfaceList) IsAnAPIObject() {}
|
||||
|
||||
func TestExtractListOfInterfacePtrs(t *testing.T) {
|
||||
pl := &fakePtrInterfaceList{
|
||||
Items: []*runtime.Object{},
|
||||
Items: &[]runtime.Object{},
|
||||
}
|
||||
list, err := runtime.ExtractList(pl)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user