mirror of
https://github.com/ent/ent.git
synced 2026-05-24 09:31:56 +03:00
entc/integ: add tests for default-func
This commit is contained in:
@@ -185,9 +185,7 @@ func TestBytes(t *testing.T) {
|
||||
|
||||
fd = field.Bytes("uuid").
|
||||
GoType(&uuid.UUID{}).
|
||||
DefaultFunc(func() uuid.UUID {
|
||||
return uuid.New()
|
||||
}).
|
||||
DefaultFunc(uuid.New).
|
||||
Descriptor()
|
||||
assert.NoError(t, fd.Err)
|
||||
assert.Equal(t, "uuid.UUID", fd.Info.Ident)
|
||||
|
||||
Reference in New Issue
Block a user