createNoValidationValues() — gin Function Reference
Architecture documentation for the createNoValidationValues() function in validate_test.go from the gin codebase.
Entity Profile
Dependency Diagram
graph TD 41b0e9fe_eef5_e4fb_2e53_77da21e63c4b["createNoValidationValues()"] 7e10d9ab_ee22_270a_45bf_aa404c229204["validate_test.go"] 41b0e9fe_eef5_e4fb_2e53_77da21e63c4b -->|defined in| 7e10d9ab_ee22_270a_45bf_aa404c229204 d97d0228_b9b4_2842_ea98_52adb1711fab["TestValidateNoValidationValues()"] d97d0228_b9b4_2842_ea98_52adb1711fab -->|calls| 41b0e9fe_eef5_e4fb_2e53_77da21e63c4b style 41b0e9fe_eef5_e4fb_2e53_77da21e63c4b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
binding/validate_test.go lines 70–110
func createNoValidationValues() structNoValidationValues {
integer := 1
s := structNoValidationValues{
Boolean: true,
Uinteger: 1 << 29,
Integer: -10000,
Integer8: 120,
Integer16: -20000,
Integer32: 1 << 29,
Integer64: 1 << 61,
Uinteger8: 250,
Uinteger16: 50000,
Uinteger32: 1 << 31,
Uinteger64: 1 << 62,
Float32: 123.456,
Float64: 123.456789,
String: "text",
Date: time.Time{},
CustomInterface: &bytes.Buffer{},
Struct: substructNoValidation{},
IntSlice: []int{-3, -2, 1, 0, 1, 2, 3},
IntPointerSlice: []*int{&integer},
StructSlice: []substructNoValidation{},
UniversalInterface: 1.2,
FloatMap: map[string]float32{
"foo": 1.23,
"bar": 232.323,
},
StructMap: mapNoValidationSub{
"foo": substructNoValidation{},
"bar": substructNoValidation{},
},
// StructPointerSlice []noValidationSub
// InterfaceSlice []testInterface
}
s.InlinedStruct.Integer = 1000
s.InlinedStruct.String = []string{"first", "second"}
s.IString = "substring"
s.IInt = 987654
return s
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does createNoValidationValues() do?
createNoValidationValues() is a function in the gin codebase, defined in binding/validate_test.go.
Where is createNoValidationValues() defined?
createNoValidationValues() is defined in binding/validate_test.go at line 70.
What calls createNoValidationValues()?
createNoValidationValues() is called by 1 function(s): TestValidateNoValidationValues.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free