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

Function test_repository_status_add_entry

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

Source from the content-addressed store, hash-verified

996
997 #[test]
998 fn test_repository_status_add_entry() {
999 let mut status = RepositoryStatus::new("dev".to_string(), None);
1000
1001 status.add_entry(FileStatusEntry::new(
1002 PathBuf::from("file1.txt"),
1003 FileStatus::Modified,
1004 ));
1005 status.add_entry(FileStatusEntry::new(
1006 PathBuf::from("file2.txt"),
1007 FileStatus::Untracked,
1008 ));
1009
1010 assert_eq!(status.total_count(), 2);
1011 assert!(!status.is_clean());
1012 }
1013
1014 #[test]
1015 fn test_repository_status_get() {

Callers

nothing calls this directly

Calls 1

add_entryMethod · 0.80

Tested by

no test coverage detected