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

Function test_repository_status_new

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

Source from the content-addressed store, hash-verified

1261
1262 #[test]
1263 fn test_repository_status_new() {
1264 let merkle = Merkle::of(b"test state");
1265 let status = RepositoryStatus::new("main".to_string(), Some(merkle));
1266
1267 assert_eq!(status.view(), "main");
1268 assert_eq!(status.state(), Some(&merkle));
1269 assert_eq!(status.total_count(), 0);
1270 assert!(status.is_clean());
1271 }
1272
1273 #[test]
1274 fn test_repository_status_add_entry() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected