newAttestationMutation creates new mutation for the Attestation entity.
(c config, op Op, opts ...attestationOption)
| 1283 | |
| 1284 | // newAttestationMutation creates new mutation for the Attestation entity. |
| 1285 | func newAttestationMutation(c config, op Op, opts ...attestationOption) *AttestationMutation { |
| 1286 | m := &AttestationMutation{ |
| 1287 | config: c, |
| 1288 | op: op, |
| 1289 | typ: TypeAttestation, |
| 1290 | clearedFields: make(map[string]struct{}), |
| 1291 | } |
| 1292 | for _, opt := range opts { |
| 1293 | opt(m) |
| 1294 | } |
| 1295 | return m |
| 1296 | } |
| 1297 | |
| 1298 | // withAttestationID sets the ID field of the mutation. |
| 1299 | func withAttestationID(id uuid.UUID) attestationOption { |
no outgoing calls
no test coverage detected