()
| 1378 | |
| 1379 | #[test] |
| 1380 | fn test_file_ops_create() { |
| 1381 | let ops = FileOps::create( |
| 1382 | test_trunk_id(), |
| 1383 | "test.txt".to_string(), |
| 1384 | Some(Encoding::Utf8), |
| 1385 | ); |
| 1386 | |
| 1387 | assert!(ops.is_create()); |
| 1388 | assert!(!ops.is_delete()); |
| 1389 | assert!(!ops.is_edit()); |
| 1390 | assert_eq!(ops.path(), "test.txt"); |
| 1391 | assert!(ops.has_operations()); |
| 1392 | } |
| 1393 | |
| 1394 | #[test] |
| 1395 | fn test_file_ops_delete() { |
nothing calls this directly
no test coverage detected