We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc903d2 commit 1530555Copy full SHA for 1530555
query/encode_test.go
@@ -355,6 +355,12 @@ func TestIsEmptyValue(t *testing.T) {
355
// time
356
{time.Time{}, true},
357
{time.Now(), false},
358
+
359
+ // unknown type - always false unless a nil pointer, which are always empty.
360
+ {(*struct{ int })(nil), true},
361
+ {struct{ int }{}, false},
362
+ {struct{ int }{0}, false},
363
+ {struct{ int }{1}, false},
364
}
365
366
for _, tt := range tests {
0 commit comments