-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add new test for deepcopy #51
Conversation
I appreciate the followup. Can we narrow this down and rename it to reflect the type that is being demonstrated. Specifically, a struct with a single member field that triggers the rendered code - that way each output test is trivial to look at and decide if changes are correct. It might mean 3 or 4 individual new dirs.. |
@thockin - yrw and sure, that makes sense. I will update the changes. Thanks!! |
4c78c60
to
331d9bf
Compare
@thockin - Hi Tim, as you could tell I am new to Go, but have tried to identify new types and added tests for them. Hope that makes sense. Thanks!! |
} | ||
|
||
type Ttest struct { | ||
i []Inter |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this has to be named I
- non-private name.
// This is a test package. | ||
package interfaces | ||
|
||
type Inter interface { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does Inter
mean?
in, out := &in.Types, &out.Types | ||
*out = make(map[string]*Ttest) | ||
for key, val := range *in { | ||
newVal, err := c.DeepCopy(&val) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we expect this to hit the Cloner path?
Add new tests convering types related to changes made under kubernetes#46
LGTM! |
Add new test convering servicecatalog types related to changes made under
#46