()
| 929 | |
| 930 | #[test] |
| 931 | fn test_recorded_into_parts() { |
| 932 | let mut builder = RecordBuilder::new(); |
| 933 | builder.append_contents(b"content"); |
| 934 | builder.add_hunk(create_test_file_add_hunk()); |
| 935 | builder.add_inode_update(0, InodeUpdate::add(ChangePosition::new(0), Inode::new(1))); |
| 936 | |
| 937 | let recorded = builder.finish(); |
| 938 | let (actions, contents, updatables) = recorded.into_parts(); |
| 939 | |
| 940 | assert_eq!(actions.len(), 1); |
| 941 | assert_eq!(contents, b"content"); |
| 942 | assert_eq!(updatables.len(), 1); |
| 943 | } |
| 944 | |
| 945 | #[test] |
| 946 | fn test_recorded_actions() { |
nothing calls this directly
no test coverage detected