()
| 804 | |
| 805 | #[test] |
| 806 | fn test_store_save_with_keypair() { |
| 807 | let (_temp, store) = create_test_store(); |
| 808 | |
| 809 | let keypair = KeyPair::generate(); |
| 810 | let identity = Identity::new("bob", &keypair); |
| 811 | |
| 812 | store.save_with_keypair(&identity, &keypair, None).unwrap(); |
| 813 | |
| 814 | let loaded_keypair = store.load_keypair(&identity.id, None).unwrap(); |
| 815 | assert_eq!(loaded_keypair.public, keypair.public); |
| 816 | } |
| 817 | |
| 818 | #[test] |
| 819 | fn test_store_load_by_name() { |
nothing calls this directly
no test coverage detected