()
| 173 | |
| 174 | #[test] |
| 175 | fn test_conflict_group() { |
| 176 | let v1 = GraphNode::new( |
| 177 | NodeId::new(1), |
| 178 | ChangePosition::new(0), |
| 179 | ChangePosition::new(10), |
| 180 | ); |
| 181 | let v2 = GraphNode::new( |
| 182 | NodeId::new(2), |
| 183 | ChangePosition::new(0), |
| 184 | ChangePosition::new(10), |
| 185 | ); |
| 186 | let group = ConflictGroup::new(vec![v1, v2]); |
| 187 | assert_eq!(group.vertex_count(), 2); |
| 188 | assert!(group.ancestor.is_none()); |
| 189 | } |
| 190 | |
| 191 | #[test] |
| 192 | fn test_conflict_group_with_ancestor() { |
nothing calls this directly
no outgoing calls
no test coverage detected