From f802550a491a20bc6ac20760a41382aadfdff31a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Fri, 1 Sep 2023 17:57:02 +0800 Subject: [PATCH] update --- tool/gabs_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tool/gabs_test.go b/tool/gabs_test.go index b297837..5b2aa41 100644 --- a/tool/gabs_test.go +++ b/tool/gabs_test.go @@ -35,6 +35,7 @@ func TestDataFilter_FilterNormalData(t *testing.T) { {SourceKey: "extra.age", MapKey: "user_age", DefaultValue: "18", WithDefault: true}, {SourceKey: "slice", MapKey: "user_index", DefaultValue: "[4,5,6]", WithDefault: true}, {SourceKey: "none", MapKey: "none_default", DefaultValue: map[string]interface{}{"a": "a"}, WithDefault: true}, + {SourceKey: "extra", MapKey: "extra_object", DefaultValue: map[string]interface{}{"a": "a"}, WithDefault: true}, }, } fmt.Println(df.Filter())