Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for recursive types in defaulter-gen #1

Conversation

nikhita
Copy link

@nikhita nikhita commented Jun 12, 2017

Fix for defaulter-gen to support recursive types is here: kubernetes#61.
This commit adds tests for it. The tests should pass once kubernetes#61 is merged.

/cc @sttts

@@ -38,3 +38,19 @@ type Struct_No_Field_Has_Manual_Defaulter struct {
TypeMeta struct{}
OtherField string
}

// Struct_A_Has_Manual_Defaulter has recursive types structA and structB
type Struct_A_Has_Manual_Defaulter struct {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how about Recursive_Struct_A_With_Manual_Defaulter ? Same for B.

@nikhita nikhita force-pushed the nikhita-recursive-types-test branch from 28b2fad to 4820e8e Compare June 12, 2017 12:53
@nikhita
Copy link
Author

nikhita commented Jun 12, 2017

Updated and addressed comments.

@sttts
Copy link

sttts commented Jun 12, 2017

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants