@ -362,7 +362,7 @@ func TestFlattenValidation(t *testing.T) {
var errStructPtrArray [ ] [ ] * Inner
var errStructPtrArray [ ] [ ] * Inner
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , & Inner { "ok" } } )
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { { "ok" } , { "" } , { "ok" } } )
tmsp := & TestMultiDimensionalStructsPtr {
tmsp := & TestMultiDimensionalStructsPtr {
Errs : errStructPtrArray ,
Errs : errStructPtrArray ,
@ -396,7 +396,7 @@ func TestFlattenValidation(t *testing.T) {
Equal ( t , structErrFlatten . Tag , "required" )
Equal ( t , structErrFlatten . Tag , "required" )
errStructPtrArray = [ ] [ ] * Inner { }
errStructPtrArray = [ ] [ ] * Inner { }
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { & Inner { "ok" } , nil , & Inner { "ok" } } )
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { { "ok" } , nil , { "ok" } } )
tmsp = & TestMultiDimensionalStructsPtr {
tmsp = & TestMultiDimensionalStructsPtr {
Errs : errStructPtrArray ,
Errs : errStructPtrArray ,
@ -428,7 +428,7 @@ func TestFlattenValidation(t *testing.T) {
Errs map [ int ] * Inner ` validate:"gt=0,dive,required" `
Errs map [ int ] * Inner ` validate:"gt=0,dive,required" `
}
}
mip := map [ int ] * Inner { 0 : & Inner { "ok" } , 3 : & Inner { "" } , 4 : & Inner { "ok" } }
mip := map [ int ] * Inner { 0 : { "ok" } , 3 : { "" } , 4 : { "ok" } }
msp := & TestMapStructPtr {
msp := & TestMapStructPtr {
Errs : mip ,
Errs : mip ,
@ -460,7 +460,7 @@ func TestFlattenValidation(t *testing.T) {
Equal ( t , flatErrs . Field , "Name" )
Equal ( t , flatErrs . Field , "Name" )
Equal ( t , flatErrs . Tag , "required" )
Equal ( t , flatErrs . Tag , "required" )
mip2 := map [ int ] * Inner { 0 : & Inner { "ok" } , 3 : nil , 4 : & Inner { "ok" } }
mip2 := map [ int ] * Inner { 0 : { "ok" } , 3 : nil , 4 : { "ok" } }
msp2 := & TestMapStructPtr {
msp2 := & TestMapStructPtr {
Errs : mip2 ,
Errs : mip2 ,
@ -491,7 +491,7 @@ func TestFlattenValidation(t *testing.T) {
Errs map [ int ] [ ] string ` validate:"gt=0,dive,dive,required" `
Errs map [ int ] [ ] string ` validate:"gt=0,dive,dive,required" `
}
}
mias := map [ int ] [ ] string { 0 : [ ] string { "ok" } , 3 : [ ] string { "ok" , "" } , 4 : [ ] string { "ok" } }
mias := map [ int ] [ ] string { 0 : { "ok" } , 3 : { "ok" , "" } , 4 : { "ok" } }
mia := & TestMapInnerArrayStruct {
mia := & TestMapInnerArrayStruct {
Errs : mias ,
Errs : mias ,
@ -658,9 +658,9 @@ func TestInterfaceErrValidation(t *testing.T) {
var errStructPtr2Array [ ] [ ] * Inner
var errStructPtr2Array [ ] [ ] * Inner
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , & Inner { "" } } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { { "ok" } , { "" } , { "" } } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , & Inner { "" } } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { { "ok" } , { "" } , { "" } } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , nil } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { { "ok" } , { "" } , nil } )
tmsp2 := & TestMultiDimensionalStructsPtr2 {
tmsp2 := & TestMultiDimensionalStructsPtr2 {
Errs : errStructPtr2Array ,
Errs : errStructPtr2Array ,
@ -767,7 +767,7 @@ func TestMapDiveValidation(t *testing.T) {
Errs map [ int ] Inner ` validate:"gt=0,dive" `
Errs map [ int ] Inner ` validate:"gt=0,dive" `
}
}
mi := map [ int ] Inner { 0 : Inner { "ok" } , 3 : Inner { "" } , 4 : Inner { "ok" } }
mi := map [ int ] Inner { 0 : { "ok" } , 3 : { "" } , 4 : { "ok" } }
ms := & TestMapStruct {
ms := & TestMapStruct {
Errs : mi ,
Errs : mi ,
@ -828,7 +828,7 @@ func TestMapDiveValidation(t *testing.T) {
Errs map [ int ] * Inner ` validate:"gt=0,dive,required" `
Errs map [ int ] * Inner ` validate:"gt=0,dive,required" `
}
}
mip := map [ int ] * Inner { 0 : & Inner { "ok" } , 3 : nil , 4 : & Inner { "ok" } }
mip := map [ int ] * Inner { 0 : { "ok" } , 3 : nil , 4 : { "ok" } }
msp := & TestMapStructPtr {
msp := & TestMapStructPtr {
Errs : mip ,
Errs : mip ,
@ -855,7 +855,7 @@ func TestMapDiveValidation(t *testing.T) {
Errs map [ int ] * Inner ` validate:"gt=0,dive,omitempty,required" `
Errs map [ int ] * Inner ` validate:"gt=0,dive,omitempty,required" `
}
}
mip2 := map [ int ] * Inner { 0 : & Inner { "ok" } , 3 : nil , 4 : & Inner { "ok" } }
mip2 := map [ int ] * Inner { 0 : { "ok" } , 3 : nil , 4 : { "ok" } }
msp2 := & TestMapStructPtr2 {
msp2 := & TestMapStructPtr2 {
Errs : mip2 ,
Errs : mip2 ,
@ -994,8 +994,8 @@ func TestArrayDiveValidation(t *testing.T) {
var errStructArray [ ] [ ] Inner
var errStructArray [ ] [ ] Inner
errStructArray = append ( errStructArray , [ ] Inner { Inner { "ok" } , Inner { "" } , Inner { "" } } )
errStructArray = append ( errStructArray , [ ] Inner { { "ok" } , { "" } , { "" } } )
errStructArray = append ( errStructArray , [ ] Inner { Inner { "ok" } , Inner { "" } , Inner { "" } } )
errStructArray = append ( errStructArray , [ ] Inner { { "ok" } , { "" } , { "" } } )
tms := & TestMultiDimensionalStructs {
tms := & TestMultiDimensionalStructs {
Errs : errStructArray ,
Errs : errStructArray ,
@ -1032,9 +1032,9 @@ func TestArrayDiveValidation(t *testing.T) {
var errStructPtrArray [ ] [ ] * Inner
var errStructPtrArray [ ] [ ] * Inner
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , & Inner { "" } } )
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { { "ok" } , { "" } , { "" } } )
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , & Inner { "" } } )
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { { "ok" } , { "" } , { "" } } )
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , nil } )
errStructPtrArray = append ( errStructPtrArray , [ ] * Inner { { "ok" } , { "" } , nil } )
tmsp := & TestMultiDimensionalStructsPtr {
tmsp := & TestMultiDimensionalStructsPtr {
Errs : errStructPtrArray ,
Errs : errStructPtrArray ,
@ -1086,9 +1086,9 @@ func TestArrayDiveValidation(t *testing.T) {
var errStructPtr2Array [ ] [ ] * Inner
var errStructPtr2Array [ ] [ ] * Inner
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , & Inner { "" } } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { { "ok" } , { "" } , { "" } } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , & Inner { "" } } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { { "ok" } , { "" } , { "" } } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , nil } )
errStructPtr2Array = append ( errStructPtr2Array , [ ] * Inner { { "ok" } , { "" } , nil } )
tmsp2 := & TestMultiDimensionalStructsPtr2 {
tmsp2 := & TestMultiDimensionalStructsPtr2 {
Errs : errStructPtr2Array ,
Errs : errStructPtr2Array ,
@ -1132,9 +1132,9 @@ func TestArrayDiveValidation(t *testing.T) {
var errStructPtr3Array [ ] [ ] * Inner
var errStructPtr3Array [ ] [ ] * Inner
errStructPtr3Array = append ( errStructPtr3Array , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , & Inner { "" } } )
errStructPtr3Array = append ( errStructPtr3Array , [ ] * Inner { { "ok" } , { "" } , { "" } } )
errStructPtr3Array = append ( errStructPtr3Array , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , & Inner { "" } } )
errStructPtr3Array = append ( errStructPtr3Array , [ ] * Inner { { "ok" } , { "" } , { "" } } )
errStructPtr3Array = append ( errStructPtr3Array , [ ] * Inner { & Inner { "ok" } , & Inner { "" } , nil } )
errStructPtr3Array = append ( errStructPtr3Array , [ ] * Inner { { "ok" } , { "" } , nil } )
tmsp3 := & TestMultiDimensionalStructsPtr3 {
tmsp3 := & TestMultiDimensionalStructsPtr3 {
Errs : errStructPtr3Array ,
Errs : errStructPtr3Array ,