testing without db tags

This commit is contained in:
2025-09-30 17:39:15 -04:00
parent 5f24529730
commit 935285a9f3

10
lazy.go
View File

@@ -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)