MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_change_kind_modified

Function test_change_kind_modified

atomic-core/src/record/detect.rs:941–954  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected