()
| 920 | |
| 921 | #[test] |
| 922 | fn test_file_del() { |
| 923 | let graph_op: GraphOp<Hash> = GraphOp::FileDel { |
| 924 | del: test_edge_map(), |
| 925 | contents: None, |
| 926 | path: "old_file.txt".to_string(), |
| 927 | encoding: Some(Encoding::Utf8), |
| 928 | }; |
| 929 | |
| 930 | assert!(graph_op.is_file_operation()); |
| 931 | assert_eq!(graph_op.path(), Some("old_file.txt")); |
| 932 | assert_eq!(graph_op.type_name(), "FileDel"); |
| 933 | } |
| 934 | |
| 935 | #[test] |
| 936 | fn test_file_move() { |
nothing calls this directly
no test coverage detected