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

Function test_repository_status_tracked_paths

atomic-repository/src/status.rs:1152–1170  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1150
1151 #[test]
1152 fn test_repository_status_tracked_paths() {
1153 let mut status = RepositoryStatus::new("dev".to_string(), None);
1154
1155 status.add_entry(FileStatusEntry::new(
1156 PathBuf::from("tracked1.txt"),
1157 FileStatus::Clean,
1158 ));
1159 status.add_entry(FileStatusEntry::new(
1160 PathBuf::from("tracked2.txt"),
1161 FileStatus::Modified,
1162 ));
1163 status.add_entry(FileStatusEntry::new(
1164 PathBuf::from("untracked.txt"),
1165 FileStatus::Untracked,
1166 ));
1167
1168 let tracked = status.tracked_paths();
1169 assert_eq!(tracked.len(), 2);
1170 }
1171
1172 // StatusOptions Tests
1173

Callers

nothing calls this directly

Calls 2

add_entryMethod · 0.80
tracked_pathsMethod · 0.80

Tested by

no test coverage detected