()
| 962 | |
| 963 | #[test] |
| 964 | fn test_replacement() { |
| 965 | let graph_op: GraphOp<Hash> = GraphOp::Replacement { |
| 966 | change: test_edge_map(), |
| 967 | replacement: test_new_vertex(), |
| 968 | local: Local::new("src/main.rs", 100), |
| 969 | encoding: Some(Encoding::Utf8), |
| 970 | }; |
| 971 | |
| 972 | assert!(graph_op.is_content_edit()); |
| 973 | assert_eq!(graph_op.path(), Some("src/main.rs")); |
| 974 | assert_eq!(graph_op.line(), Some(100)); |
| 975 | } |
| 976 | |
| 977 | #[test] |
| 978 | fn test_solve_name_conflict() { |
nothing calls this directly
no test coverage detected