| 372 | } |
| 373 | |
| 374 | fn child(parent: OperationId) -> Operation { |
| 375 | Operation::new(OperationPayload { |
| 376 | parents: vec![parent], |
| 377 | kind: OperationKind::Materialize, |
| 378 | relation: None, |
| 379 | working_copy: None, |
| 380 | before: RepoStateRef::EMPTY, |
| 381 | delta: RepoStateDelta { |
| 382 | after: RepoStateRef::EMPTY, |
| 383 | metadata: Vec::new(), |
| 384 | effects: vec![EffectPlan { |
| 385 | ordinal: 0, |
| 386 | target: EffectTarget::FilesystemPath { |
| 387 | path: "file.txt".into(), |
| 388 | }, |
| 389 | expected_old: EffectValue::Absent, |
| 390 | expected_new: EffectValue::Verification(Hash::from_bytes([9; 32])), |
| 391 | }], |
| 392 | }, |
| 393 | git_observed: Vec::new(), |
| 394 | evidence: Vec::new(), |
| 395 | actor: ActorRef::System { |
| 396 | name: "test".into(), |
| 397 | }, |
| 398 | timestamp_ms: 2, |
| 399 | lossy: Vec::new(), |
| 400 | }) |
| 401 | .unwrap() |
| 402 | } |
| 403 | |
| 404 | fn applied_receipt(operation: OperationId) -> EffectReceipt { |
| 405 | EffectReceipt::new(EffectReceiptPayload { |