()
| 19 | |
| 20 | #[test] |
| 21 | fn test_input_modified() { |
| 22 | let inode = Inode::new(42); |
| 23 | let pos = Position::new(NodeId::new(1), ChangePosition::new(0)); |
| 24 | let input = FileRecordInput::modified( |
| 25 | "src/lib.rs".into(), |
| 26 | "/repo/src/lib.rs".into(), |
| 27 | b"old content".to_vec(), |
| 28 | inode, |
| 29 | pos, |
| 30 | ); |
| 31 | assert!(!input.is_added()); |
| 32 | assert!(input.is_modified()); |
| 33 | assert!(!input.is_deleted()); |
| 34 | assert!(input.inode.is_some()); |
| 35 | assert_eq!(input.old_content, b"old content"); |
| 36 | } |
| 37 | |
| 38 | #[test] |
| 39 | fn test_input_deleted() { |
nothing calls this directly
no test coverage detected