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

Function test_file_change_added

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

Source from the content-addressed store, hash-verified

1007
1008 #[test]
1009 fn test_file_change_added() {
1010 let change = FileChange::added("test.rs", Encoding::Utf8);
1011
1012 assert_eq!(change.path, "test.rs");
1013 assert!(change.inode.is_none());
1014 assert!(change.position.is_none());
1015 assert!(change.kind.is_added());
1016 }
1017
1018 #[test]
1019 fn test_file_change_modified() {

Callers

nothing calls this directly

Calls 1

addedFunction · 0.85

Tested by

no test coverage detected