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 test case for nested structs #222

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

golanglemonade
Copy link
Contributor

Adds a test for #219

On version v0.21.2:

=== RUN   TestMarshalJSON/marshal_nested
runtime: goroutine stack exceeds 1000000000-byte limit
runtime: sp=0x140201e0380 stack=[0x140201e0000, 0x140401e0000]
fatal error: stack overflow

On latest:

    --- PASS: TestMarshalJSON/marshal_NumberOne (0.00s)
    --- PASS: TestMarshalJSON/marshal_NumberTwo (0.00s)
    --- PASS: TestMarshalJSON/marshal_nested (0.00s)
    --- PASS: TestMarshalJSON/marshal_a_struct_with_custom_marshaler (0.00s)
    --- PASS: TestMarshalJSON/marshal_map_with_custom_marshaler (0.00s)
    --- PASS: TestMarshalJSON/marshal_time.Time (0.00s)
    --- PASS: TestMarshalJSON/marshal_time.Time#01 (0.00s)
PASS
ok  	github.com/Yamashou/gqlgenc/clientv2	0.140s

Signed-off-by: Golang Lemonade <[email protected]>
@Yamashou Yamashou merged commit d17fa58 into Yamashou:master Apr 24, 2024
1 check passed
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