(ctx context.Context)
| 362 | } |
| 363 | if v, ok := _c.mutation.Pkgbase(); ok { |
| 364 | if err := dbpackage.PkgbaseValidator(v); err != nil { |
| 365 | return &ValidationError{Name: "pkgbase", err: fmt.Errorf(`ent: validator failed for field "DBPackage.pkgbase": %w`, err)} |
| 366 | } |
| 367 | } |
| 368 | if v, ok := _c.mutation.Status(); ok { |
| 369 | if err := dbpackage.StatusValidator(v); err != nil { |
| 370 | return &ValidationError{Name: "status", err: fmt.Errorf(`ent: validator failed for field "DBPackage.status": %w`, err)} |
| 371 | } |
| 372 | } |
| 373 | if _, ok := _c.mutation.Repository(); !ok { |
| 374 | return &ValidationError{Name: "repository", err: errors.New(`ent: missing required field "DBPackage.repository"`)} |
| 375 | } |
| 376 | if v, ok := _c.mutation.Repository(); ok { |
| 377 | if err := dbpackage.RepositoryValidator(v); err != nil { |
| 378 | return &ValidationError{Name: "repository", err: fmt.Errorf(`ent: validator failed for field "DBPackage.repository": %w`, err)} |
| 379 | } |
| 380 | } |
| 381 | if _, ok := _c.mutation.March(); !ok { |
| 382 | return &ValidationError{Name: "march", err: errors.New(`ent: missing required field "DBPackage.march"`)} |
| 383 | } |
nothing calls this directly
no test coverage detected