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:986–1000  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

984
985 #[test]
986 fn test_repository_status_add_entry() {
987 let mut status = RepositoryStatus::new("dev".to_string(), None);
988
989 status.add_entry(FileStatusEntry::new(
990 PathBuf::from("file1.txt"),
991 FileStatus::Modified,
992 ));
993 status.add_entry(FileStatusEntry::new(
994 PathBuf::from("file2.txt"),
995 FileStatus::Untracked,
996 ));
997
998 assert_eq!(status.total_count(), 2);
999 assert!(!status.is_clean());
1000 }
1001
1002 #[test]
1003 fn test_repository_status_get() {

Callers

nothing calls this directly

Calls 1

add_entryMethod · 0.80

Tested by

no test coverage detected