Skip to content

Commit

Permalink
Update deepcopy test output
Browse files Browse the repository at this point in the history
  • Loading branch information
sttts committed Jul 25, 2017
1 parent a98ae76 commit 037cb79
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 206 deletions.
15 changes: 0 additions & 15 deletions examples/deepcopy-gen/output_tests/builtins/zz_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ limitations under the License.

package builtins

import (
conversion "k8s.io/apimachinery/pkg/conversion"
reflect "reflect"
)

// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Ttest).DeepCopyInto(out.(*Ttest))
return nil
}, InType: reflect.TypeOf(&Ttest{})},
}
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Ttest) DeepCopyInto(out *Ttest) {
*out = *in
Expand Down
15 changes: 0 additions & 15 deletions examples/deepcopy-gen/output_tests/interfaces/zz_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ limitations under the License.

package interfaces

import (
conversion "k8s.io/apimachinery/pkg/conversion"
reflect "reflect"
)

// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Ttest).DeepCopyInto(out.(*Ttest))
return nil
}, InType: reflect.TypeOf(&Ttest{})},
}
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Ttest) DeepCopyInto(out *Ttest) {
*out = *in
Expand Down
15 changes: 0 additions & 15 deletions examples/deepcopy-gen/output_tests/maps/zz_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ limitations under the License.

package maps

import (
conversion "k8s.io/apimachinery/pkg/conversion"
reflect "reflect"
)

// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Ttest).DeepCopyInto(out.(*Ttest))
return nil
}, InType: reflect.TypeOf(&Ttest{})},
}
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Ttest) DeepCopyInto(out *Ttest) {
*out = *in
Expand Down
15 changes: 0 additions & 15 deletions examples/deepcopy-gen/output_tests/pointer/zz_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ limitations under the License.

package pointer

import (
conversion "k8s.io/apimachinery/pkg/conversion"
reflect "reflect"
)

// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Ttest).DeepCopyInto(out.(*Ttest))
return nil
}, InType: reflect.TypeOf(&Ttest{})},
}
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Ttest) DeepCopyInto(out *Ttest) {
*out = *in
Expand Down
15 changes: 0 additions & 15 deletions examples/deepcopy-gen/output_tests/slices/zz_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,21 +20,6 @@ limitations under the License.

package slices

import (
conversion "k8s.io/apimachinery/pkg/conversion"
reflect "reflect"
)

// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Ttest).DeepCopyInto(out.(*Ttest))
return nil
}, InType: reflect.TypeOf(&Ttest{})},
}
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Ttest) DeepCopyInto(out *Ttest) {
*out = *in
Expand Down
19 changes: 0 additions & 19 deletions examples/deepcopy-gen/output_tests/structs/zz_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,6 @@ limitations under the License.

package structs

import (
conversion "k8s.io/apimachinery/pkg/conversion"
reflect "reflect"
)

// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Inner).DeepCopyInto(out.(*Inner))
return nil
}, InType: reflect.TypeOf(&Inner{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Ttest).DeepCopyInto(out.(*Ttest))
return nil
}, InType: reflect.TypeOf(&Ttest{})},
}
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Inner) DeepCopyInto(out *Inner) {
*out = *in
Expand Down
112 changes: 0 additions & 112 deletions examples/deepcopy-gen/output_tests/wholepkg/zz_generated.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,121 +21,9 @@ limitations under the License.
package wholepkg

import (
conversion "k8s.io/apimachinery/pkg/conversion"
otherpkg "k8s.io/gengo/examples/deepcopy-gen/output_tests/otherpkg"
reflect "reflect"
)

// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ManualStruct).DeepCopyInto(out.(*ManualStruct))
return nil
}, InType: reflect.TypeOf(&ManualStruct{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ManualStruct_Alias).DeepCopyInto(out.(*ManualStruct_Alias))
return nil
}, InType: reflect.TypeOf(&ManualStruct_Alias{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_B).DeepCopyInto(out.(*Struct_B))
return nil
}, InType: reflect.TypeOf(&Struct_B{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Embed_Int).DeepCopyInto(out.(*Struct_Embed_Int))
return nil
}, InType: reflect.TypeOf(&Struct_Embed_Int{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Embed_ManualStruct).DeepCopyInto(out.(*Struct_Embed_ManualStruct))
return nil
}, InType: reflect.TypeOf(&Struct_Embed_ManualStruct{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Embed_Pointer).DeepCopyInto(out.(*Struct_Embed_Pointer))
return nil
}, InType: reflect.TypeOf(&Struct_Embed_Pointer{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Embed_Struct_PrimitivePointers).DeepCopyInto(out.(*Struct_Embed_Struct_PrimitivePointers))
return nil
}, InType: reflect.TypeOf(&Struct_Embed_Struct_PrimitivePointers{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Embed_Struct_Primitives).DeepCopyInto(out.(*Struct_Embed_Struct_Primitives))
return nil
}, InType: reflect.TypeOf(&Struct_Embed_Struct_Primitives{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Embed_Struct_Slices).DeepCopyInto(out.(*Struct_Embed_Struct_Slices))
return nil
}, InType: reflect.TypeOf(&Struct_Embed_Struct_Slices{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Empty).DeepCopyInto(out.(*Struct_Empty))
return nil
}, InType: reflect.TypeOf(&Struct_Empty{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Everything).DeepCopyInto(out.(*Struct_Everything))
return nil
}, InType: reflect.TypeOf(&Struct_Everything{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_ExplicitObject).DeepCopyInto(out.(*Struct_ExplicitObject))
return nil
}, InType: reflect.TypeOf(&Struct_ExplicitObject{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_ExplicitSelectorExplicitObject).DeepCopyInto(out.(*Struct_ExplicitSelectorExplicitObject))
return nil
}, InType: reflect.TypeOf(&Struct_ExplicitSelectorExplicitObject{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Interfaces).DeepCopyInto(out.(*Struct_Interfaces))
return nil
}, InType: reflect.TypeOf(&Struct_Interfaces{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_NonPointerExplicitObject).DeepCopyInto(out.(*Struct_NonPointerExplicitObject))
return nil
}, InType: reflect.TypeOf(&Struct_NonPointerExplicitObject{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_ObjectAndList).DeepCopyInto(out.(*Struct_ObjectAndList))
return nil
}, InType: reflect.TypeOf(&Struct_ObjectAndList{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_ObjectAndObject).DeepCopyInto(out.(*Struct_ObjectAndObject))
return nil
}, InType: reflect.TypeOf(&Struct_ObjectAndObject{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_PrimitivePointers).DeepCopyInto(out.(*Struct_PrimitivePointers))
return nil
}, InType: reflect.TypeOf(&Struct_PrimitivePointers{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_PrimitivePointers_Alias).DeepCopyInto(out.(*Struct_PrimitivePointers_Alias))
return nil
}, InType: reflect.TypeOf(&Struct_PrimitivePointers_Alias{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Primitives).DeepCopyInto(out.(*Struct_Primitives))
return nil
}, InType: reflect.TypeOf(&Struct_Primitives{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Primitives_Alias).DeepCopyInto(out.(*Struct_Primitives_Alias))
return nil
}, InType: reflect.TypeOf(&Struct_Primitives_Alias{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Slices).DeepCopyInto(out.(*Struct_Slices))
return nil
}, InType: reflect.TypeOf(&Struct_Slices{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Slices_Alias).DeepCopyInto(out.(*Struct_Slices_Alias))
return nil
}, InType: reflect.TypeOf(&Struct_Slices_Alias{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Struct_PrimitivePointers).DeepCopyInto(out.(*Struct_Struct_PrimitivePointers))
return nil
}, InType: reflect.TypeOf(&Struct_Struct_PrimitivePointers{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Struct_Primitives).DeepCopyInto(out.(*Struct_Struct_Primitives))
return nil
}, InType: reflect.TypeOf(&Struct_Struct_Primitives{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Struct_Struct_Slices).DeepCopyInto(out.(*Struct_Struct_Slices))
return nil
}, InType: reflect.TypeOf(&Struct_Struct_Slices{})},
}
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ManualStruct) DeepCopyInto(out *ManualStruct) {
*out = in.DeepCopy()
Expand Down

0 comments on commit 037cb79

Please sign in to comment.