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

Function test_input_modified

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

Source from the content-addressed store, hash-verified

19
20#[test]
21fn test_input_modified() {
22 let inode = Inode::new(42);
23 let pos = Position::new(NodeId::new(1), ChangePosition::new(0));
24 let input = FileRecordInput::modified(
25 "src/lib.rs".into(),
26 "/repo/src/lib.rs".into(),
27 b"old content".to_vec(),
28 inode,
29 pos,
30 );
31 assert!(!input.is_added());
32 assert!(input.is_modified());
33 assert!(!input.is_deleted());
34 assert!(input.inode.is_some());
35 assert_eq!(input.old_content, b"old content");
36}
37
38#[test]
39fn test_input_deleted() {

Callers

nothing calls this directly

Calls 1

modifiedFunction · 0.85

Tested by

no test coverage detected