We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2a60fc2 commit 4ef3313Copy full SHA for 4ef3313
query/encode_test.go
@@ -203,6 +203,15 @@ type D struct {
203
C string
204
}
205
206
+type e struct {
207
+ B
208
+ C string
209
+}
210
+
211
+type F struct {
212
+ e
213
214
215
func TestValues_embeddedStructs(t *testing.T) {
216
tests := []struct {
217
in interface{}
@@ -216,6 +225,10 @@ func TestValues_embeddedStructs(t *testing.T) {
225
D{B: B{C: "bar"}, C: "foo"},
226
url.Values{"C": {"foo", "bar"}},
218
227
},
228
+ {
229
+ F{e{B: B{C: "bar"}, C: "foo"}}, // With unexported embed
230
+ url.Values{"C": {"foo", "bar"}},
231
+ },
219
232
220
233
221
234
for i, tt := range tests {
0 commit comments