()
| 1158 | |
| 1159 | #[test] |
| 1160 | fn test_file_ops_create() { |
| 1161 | let ops = FileOps::create( |
| 1162 | test_trunk_id(), |
| 1163 | "test.txt".to_string(), |
| 1164 | Some(Encoding::Utf8), |
| 1165 | ); |
| 1166 | |
| 1167 | assert!(ops.is_create()); |
| 1168 | assert!(!ops.is_delete()); |
| 1169 | assert!(!ops.is_edit()); |
| 1170 | assert_eq!(ops.path(), "test.txt"); |
| 1171 | assert!(ops.has_operations()); |
| 1172 | } |
| 1173 | |
| 1174 | #[test] |
| 1175 | fn test_file_ops_delete() { |
nothing calls this directly
no test coverage detected