()
| 1370 | |
| 1371 | #[test] |
| 1372 | fn test_change_add_hunk() { |
| 1373 | let mut change = Change::empty(ChangeHeader::new("Test")); |
| 1374 | let graph_op: GraphOp<Option<Hash>> = GraphOp::Edit { |
| 1375 | change: Atom::Insertion(test_new_vertex()), |
| 1376 | local: Local::new("test.rs", 1), |
| 1377 | encoding: Some(Encoding::Utf8), |
| 1378 | }; |
| 1379 | change.add_hunk(graph_op); |
| 1380 | |
| 1381 | assert_eq!(change.hunks().len(), 1); |
| 1382 | } |
| 1383 | |
| 1384 | #[test] |
| 1385 | fn test_change_append_contents() { |
nothing calls this directly
no test coverage detected