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