Skip to content

Commit ee089ed

Browse files
committed
🌱 Test DeepCopy of contained non-pointer types
Signed-off-by: Chris Bandy <[email protected]>
1 parent c71f903 commit ee089ed

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

pkg/deepcopy/testdata/cronjob_types.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ type SpecificCases struct {
116116

117117
// other map types
118118
MapToDeepCopyPtr map[string]DeepCopyPtr `json:"mapToDeepCopyPtr"`
119-
MapToDeepCopyNonPtr map[string]DeepCopyPtr `json:"mapToDeepCopyNonPtr"`
119+
MapToDeepCopyNonPtr map[string]DeepCopyNonPtr `json:"mapToDeepCopyNonPtr"`
120120
MapToDeepCopyIntoPtr map[string]DeepCopyIntoPtr `json:"mapToDeepCopyIntoPtr"`
121121
MapToDeepCopyIntoNonPtr map[string]DeepCopyIntoNonPtr `json:"mapToDeepCopyIntoNonPtr"`
122122
MapToShallowNamedType map[string]TotallyAString `json:"mapToShallowNamedType"`
@@ -129,7 +129,7 @@ type SpecificCases struct {
129129

130130
// other slice types
131131
SliceToDeepCopyPtr []DeepCopyPtr `json:"sliceToDeepCopyPtr"`
132-
SliceToDeepCopyNonPtr []DeepCopyPtr `json:"sliceToDeepCopyNonPtr"`
132+
SliceToDeepCopyNonPtr []DeepCopyNonPtr `json:"sliceToDeepCopyNonPtr"`
133133
SliceToDeepCopyIntoPtr []DeepCopyIntoPtr `json:"sliceToDeepCopyIntoPtr"`
134134
SliceToDeepCopyIntoNonPtr []DeepCopyIntoNonPtr `json:"sliceToDeepCopyIntoNonPtr"`
135135
SliceToShallowNamedType []TotallyAString `json:"sliceToShallowNamedType"`
@@ -138,7 +138,7 @@ type SpecificCases struct {
138138

139139
// other pointer types
140140
PtrToDeepCopyPtr *DeepCopyPtr `json:"ptrToDeepCopyPtr"`
141-
PtrToDeepCopyNonPtr *DeepCopyPtr `json:"ptrToDeepCopyNonPtr"`
141+
PtrToDeepCopyNonPtr *DeepCopyNonPtr `json:"ptrToDeepCopyNonPtr"`
142142
PtrToDeepCopyIntoPtr *DeepCopyIntoPtr `json:"ptrToDeepCopyIntoPtr"`
143143
PtrToDeepCopyIntoNonPtr *DeepCopyIntoNonPtr `json:"ptrToDeepCopyIntoNonPtr"`
144144
PtrToShallowNamedType *TotallyAString `json:"ptrToShallowNamedType"`

pkg/deepcopy/testdata/zz_generated.deepcopy.go

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)