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

Source from the content-addressed store, hash-verified

1014
1015 #[test]
1016 fn test_repository_status_add_entry() {
1017 let mut status = RepositoryStatus::new("dev".to_string(), None);
1018
1019 status.add_entry(FileStatusEntry::new(
1020 PathBuf::from("file1.txt"),
1021 FileStatus::Modified,
1022 ));
1023 status.add_entry(FileStatusEntry::new(
1024 PathBuf::from("file2.txt"),
1025 FileStatus::Untracked,
1026 ));
1027
1028 assert_eq!(status.total_count(), 2);
1029 assert!(!status.is_clean());
1030 }
1031
1032 #[test]
1033 fn test_repository_status_get() {

Callers

nothing calls this directly

Calls 1

add_entryMethod · 0.80

Tested by

no test coverage detected