testing without db tags
This commit is contained in:
10
lazy.go
10
lazy.go
@@ -149,11 +149,11 @@ func RandomStruct(c StructConfig) (*StructMock, error) {
|
||||
filled = reflect.Append(filled, reflect.ValueOf(c.Example))
|
||||
for y := 0; y < maxFieldCount; y++ {
|
||||
field := retType.Field(y)
|
||||
dbTag := field.Tag.Get(DB_TAG)
|
||||
// no db tag, we skip
|
||||
if dbTag == "" {
|
||||
continue
|
||||
}
|
||||
// dbTag := field.Tag.Get(DB_TAG)
|
||||
// // no db tag, we skip
|
||||
// if dbTag == "" {
|
||||
// continue
|
||||
// }
|
||||
|
||||
//get random value
|
||||
nv := kindToRandom(field)
|
||||
|
Reference in New Issue
Block a user