MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / check

Method check

app/controlplane/pkg/data/ent/user_update.go:597–604  ·  view source on GitHub ↗

check runs all checks and user-defined validators on the builder.

()

Source from the content-addressed store, hash-verified

595
596// check runs all checks and user-defined validators on the builder.
597func (_u *UserUpdateOne) check() error {
598 if v, ok := _u.mutation.Email(); ok {
599 if err := user.EmailValidator(v); err != nil {
600 return &ValidationError{Name: "email", err: fmt.Errorf(`ent: validator failed for field "User.email": %w`, err)}
601 }
602 }
603 return nil
604}
605
606// Modify adds a statement modifier for attaching custom logic to the UPDATE statement.
607func (_u *UserUpdateOne) Modify(modifiers ...func(u *sql.UpdateBuilder)) *UserUpdateOne {

Callers 1

sqlSaveMethod · 0.95

Calls 1

EmailMethod · 0.80

Tested by

no test coverage detected