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

Function test_input_added

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

Source from the content-addressed store, hash-verified

8
9#[test]
10fn test_input_added() {
11 let input = FileRecordInput::added("src/main.rs".into(), "/repo/src/main.rs".into());
12 assert!(input.is_added());
13 assert!(!input.is_modified());
14 assert!(!input.is_deleted());
15 assert!(!input.is_directory());
16 assert!(input.inode.is_none());
17 assert!(input.old_content.is_empty());
18}
19
20#[test]
21fn test_input_modified() {

Callers

nothing calls this directly

Calls 1

addedFunction · 0.85

Tested by

no test coverage detected