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

Function test_identifier_is_hash

atomic-cli/src/commands/change/tests.rs:186–192  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

184
185 #[test]
186 fn test_identifier_is_hash() {
187 assert!(ChangeIdentifier::HashPrefix("ABC".to_string()).is_hash());
188 let hash = Hash::of(b"test");
189 assert!(ChangeIdentifier::FullHash(hash).is_hash());
190 assert!(!ChangeIdentifier::Latest.is_hash());
191 assert!(!ChangeIdentifier::Sequence(42).is_hash());
192 }
193
194 // ChangeCmd Builder Tests
195

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected