| 115 | use super::*; |
| 116 | |
| 117 | fn event(event_change: u64, operation_index: u32, claimant: u64) -> PathClaimEvent { |
| 118 | PathClaimEvent::new( |
| 119 | NodeId::new(event_change), |
| 120 | operation_index, |
| 121 | PathClaimKind::File, |
| 122 | PathClaimState::Alive, |
| 123 | PathClaimId::new( |
| 124 | Position::new(NodeId::new(claimant), ChangePosition::new(10)), |
| 125 | GraphNode::root(), |
| 126 | GraphNode::new( |
| 127 | NodeId::new(event_change), |
| 128 | ChangePosition::new(0), |
| 129 | ChangePosition::new(8), |
| 130 | ), |
| 131 | NodeId::new(event_change), |
| 132 | ), |
| 133 | ) |
| 134 | } |
| 135 | |
| 136 | #[test] |
| 137 | fn path_claim_table_retains_every_transition_and_is_idempotent() { |