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

Function test_delegation_id_deterministic

atomic-identity/src/delegation.rs:724–732  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

722
723 #[test]
724 fn test_delegation_id_deterministic() {
725 let (user, agent) = create_test_identities();
726 let created_at = Utc::now();
727
728 let id1 = DelegationId::from_delegation_data(&user.id, &agent.id, created_at);
729 let id2 = DelegationId::from_delegation_data(&user.id, &agent.id, created_at);
730
731 assert_eq!(id1, id2);
732 }
733
734 #[test]
735 fn test_delegation_json_roundtrip() {

Callers

nothing calls this directly

Calls 1

create_test_identitiesFunction · 0.85

Tested by

no test coverage detected