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

Function test_file_change_modified

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

modifiedFunction · 0.85

Tested by

no test coverage detected