Skip to content

Commit

Permalink
test: add unit tests regarding issue 2926
Browse files Browse the repository at this point in the history
  • Loading branch information
wlynxg committed Sep 5, 2023
1 parent b9e2b05 commit 30f5eba
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions util/gconv/gconv_z_unit_time_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,17 @@ func Test_Time_Slice_Attribute(t *testing.T) {
t.Assert(s.Arr[1], "2021-01-12 12:34:57")
})
}

func Test_Issue2901(t *testing.T) {
type GameApp2 struct {
ForceUpdateTime *time.Time
}
gtest.C(t, func(t *gtest.T) {
src := map[string]interface{}{
"FORCE_UPDATE_TIME": time.Now(),
}
m := GameApp2{}
err := gconv.Scan(src, &m)
t.AssertNil(err)
})
}

0 comments on commit 30f5eba

Please sign in to comment.