()
| 695 | |
| 696 | #[test] |
| 697 | fn test_file_del() { |
| 698 | let graph_op: GraphOp<Hash> = GraphOp::FileDel { |
| 699 | del: test_edge_map(), |
| 700 | contents: None, |
| 701 | path: "old_file.txt".to_string(), |
| 702 | encoding: Some(Encoding::Utf8), |
| 703 | }; |
| 704 | |
| 705 | assert!(graph_op.is_file_operation()); |
| 706 | assert_eq!(graph_op.path(), Some("old_file.txt")); |
| 707 | assert_eq!(graph_op.type_name(), "FileDel"); |
| 708 | } |
| 709 | |
| 710 | #[test] |
| 711 | fn test_file_move() { |
nothing calls this directly
no test coverage detected