()
| 737 | |
| 738 | #[test] |
| 739 | fn test_replacement() { |
| 740 | let graph_op: GraphOp<Hash> = GraphOp::Replacement { |
| 741 | change: test_edge_map(), |
| 742 | replacement: test_new_vertex(), |
| 743 | local: Local::new("src/main.rs", 100), |
| 744 | encoding: Some(Encoding::Utf8), |
| 745 | }; |
| 746 | |
| 747 | assert!(graph_op.is_content_edit()); |
| 748 | assert_eq!(graph_op.path(), Some("src/main.rs")); |
| 749 | assert_eq!(graph_op.line(), Some(100)); |
| 750 | } |
| 751 | |
| 752 | #[test] |
| 753 | fn test_solve_name_conflict() { |
nothing calls this directly
no test coverage detected