()
| 934 | |
| 935 | #[test] |
| 936 | fn test_store_save_with_keypair() { |
| 937 | let (_temp, store) = create_test_store(); |
| 938 | |
| 939 | let keypair = KeyPair::generate(); |
| 940 | let identity = Identity::new("bob", &keypair); |
| 941 | |
| 942 | store.save_with_keypair(&identity, &keypair, None).unwrap(); |
| 943 | |
| 944 | let loaded_keypair = store.load_keypair(&identity.id, None).unwrap(); |
| 945 | assert_eq!(loaded_keypair.public, keypair.public); |
| 946 | } |
| 947 | |
| 948 | #[test] |
| 949 | fn test_store_load_by_name() { |
nothing calls this directly
no test coverage detected