()
| 1017 | |
| 1018 | #[test] |
| 1019 | fn test_file_change_modified() { |
| 1020 | let change = FileChange::modified( |
| 1021 | "test.rs", |
| 1022 | Inode::ROOT, |
| 1023 | Position::ROOT, |
| 1024 | vec![DiffOp::equal(0, 0, 1)], |
| 1025 | Encoding::Utf8, |
| 1026 | Encoding::Utf8, |
| 1027 | ); |
| 1028 | |
| 1029 | assert_eq!(change.path, "test.rs"); |
| 1030 | assert!(change.inode.is_some()); |
| 1031 | assert!(change.position.is_some()); |
| 1032 | assert!(change.kind.is_modified()); |
| 1033 | } |
| 1034 | |
| 1035 | #[test] |
| 1036 | fn test_file_change_deleted() { |
nothing calls this directly
no test coverage detected