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

Function test_repository_status_has_conflicts

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

Source from the content-addressed store, hash-verified

1376
1377 #[test]
1378 fn test_repository_status_has_conflicts() {
1379 let mut status = RepositoryStatus::new("dev".to_string(), None);
1380
1381 assert!(!status.has_conflicts());
1382
1383 status.add_entry(FileStatusEntry::new(
1384 PathBuf::from("clean.txt"),
1385 FileStatus::Clean,
1386 ));
1387 assert!(!status.has_conflicts());
1388
1389 status.add_entry(FileStatusEntry::new(
1390 PathBuf::from("conflict.txt"),
1391 FileStatus::Conflicted,
1392 ));
1393 assert!(status.has_conflicts());
1394 }
1395
1396 #[test]
1397 fn test_repository_status_has_untracked() {

Callers

nothing calls this directly

Calls 1

add_entryMethod · 0.80

Tested by

no test coverage detected