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

Function test_init_vault_idempotent

atomic-repository/src/repository/vault.rs:1648–1656  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1646
1647 #[test]
1648 fn test_init_vault_idempotent() {
1649 let dir = tempdir().unwrap();
1650 let repo = Repository::init(dir.path()).unwrap();
1651
1652 repo.init_vault().unwrap();
1653 repo.init_vault().unwrap(); // Should not fail
1654
1655 assert!(repo.has_vault().unwrap());
1656 }
1657
1658 #[test]
1659 fn test_vault_store_returns_hash() {

Callers

nothing calls this directly

Calls 4

initFunction · 0.50
unwrapMethod · 0.45
pathMethod · 0.45
init_vaultMethod · 0.45

Tested by

no test coverage detected