()
| 939 | |
| 940 | #[test] |
| 941 | fn test_change_kind_modified() { |
| 942 | let kind = FileChangeKind::Modified { |
| 943 | diff_ops: vec![DiffOp::equal(0, 0, 1)], |
| 944 | old_encoding: Encoding::Utf8, |
| 945 | new_encoding: Encoding::Utf8, |
| 946 | }; |
| 947 | |
| 948 | assert!(!kind.is_added()); |
| 949 | assert!(kind.is_modified()); |
| 950 | assert!(!kind.is_deleted()); |
| 951 | assert!(kind.has_content_change()); |
| 952 | assert!(kind.diff_ops().is_some()); |
| 953 | assert_eq!(kind.diff_ops().unwrap().len(), 1); |
| 954 | } |
| 955 | |
| 956 | #[test] |
| 957 | fn test_change_kind_deleted() { |
nothing calls this directly
no outgoing calls
no test coverage detected