()
| 955 | |
| 956 | #[test] |
| 957 | fn test_store_save_with_keypair() { |
| 958 | let (_temp, store) = create_test_store(); |
| 959 | |
| 960 | let keypair = KeyPair::generate(); |
| 961 | let identity = Identity::new("bob", &keypair); |
| 962 | |
| 963 | store.save_with_keypair(&identity, &keypair, None).unwrap(); |
| 964 | |
| 965 | let loaded_keypair = store.load_keypair(&identity.id, None).unwrap(); |
| 966 | assert_eq!(loaded_keypair.public, keypair.public); |
| 967 | } |
| 968 | |
| 969 | #[test] |
| 970 | fn test_store_load_by_name() { |
nothing calls this directly
no test coverage detected