()
| 929 | |
| 930 | #[test] |
| 931 | fn test_file_ops_into_parts() { |
| 932 | let ops = FileOps::create( |
| 933 | test_trunk_id(), |
| 934 | "test.txt".to_string(), |
| 935 | Some(Encoding::Utf8), |
| 936 | ); |
| 937 | let (trunk_id, path, trunk_op, line_ops) = ops.into_parts(); |
| 938 | |
| 939 | assert_eq!(trunk_id, test_trunk_id()); |
| 940 | assert_eq!(path, "test.txt"); |
| 941 | assert!(trunk_op.is_some()); |
| 942 | assert!(line_ops.is_empty()); |
| 943 | } |
| 944 | |
| 945 | // LineOps Tests |
| 946 |
nothing calls this directly
no test coverage detected