TestMappingTimeUnixNano() — gin Function Reference
Architecture documentation for the TestMappingTimeUnixNano() function in form_mapping_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD d0561ecc_0a2f_1ec7_dc96_f660747f7248["TestMappingTimeUnixNano()"] 36de44f8_6a8c_78ab_4c20_59952e276c82["form_mapping_test.go"] d0561ecc_0a2f_1ec7_dc96_f660747f7248 -->|defined in| 36de44f8_6a8c_78ab_4c20_59952e276c82 style d0561ecc_0a2f_1ec7_dc96_f660747f7248 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/form_mapping_test.go lines 236–252
func TestMappingTimeUnixNano(t *testing.T) {
type needFixUnixNanoEmpty struct {
CreateTime time.Time `form:"createTime" time_format:"unixNano"`
}
// ok
tests := []bindTestData{
{need: &needFixUnixNanoEmpty{}, got: &needFixUnixNanoEmpty{}, in: formSource{"createTime": []string{" "}}},
{need: &needFixUnixNanoEmpty{}, got: &needFixUnixNanoEmpty{}, in: formSource{"createTime": []string{}}},
}
for _, v := range tests {
err := mapForm(v.got, v.in)
require.NoError(t, err)
assert.Equal(t, v.need, v.got)
}
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does TestMappingTimeUnixNano() do?
TestMappingTimeUnixNano() is a function in the gin codebase, defined in binding/form_mapping_test.go.
Where is TestMappingTimeUnixNano() defined?
TestMappingTimeUnixNano() is defined in binding/form_mapping_test.go at line 236.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free