()
| 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() { |
nothing calls this directly
no test coverage detected