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

Function test_input_deleted

atomic-repository/src/parallel_record/tests.rs:39–47  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38#[test]
39fn test_input_deleted() {
40 let inode = Inode::new(99);
41 let pos = Position::new(NodeId::new(2), ChangePosition::new(0));
42 let input = FileRecordInput::deleted("old_file.rs".into(), inode, pos);
43 assert!(!input.is_added());
44 assert!(!input.is_modified());
45 assert!(input.is_deleted());
46 assert!(input.inode.is_some());
47}
48
49#[test]
50fn test_input_directory_added() {

Callers

nothing calls this directly

Calls 1

deletedFunction · 0.85

Tested by

no test coverage detected