()
| 1021 | |
| 1022 | #[test] |
| 1023 | fn test_store_save_with_keypair() { |
| 1024 | let (_temp, store) = create_test_store(); |
| 1025 | |
| 1026 | let keypair = KeyPair::generate(); |
| 1027 | let identity = Identity::new("bob", &keypair); |
| 1028 | |
| 1029 | store.save_with_keypair(&identity, &keypair, None).unwrap(); |
| 1030 | |
| 1031 | let loaded_keypair = store.load_keypair(&identity.id, None).unwrap(); |
| 1032 | assert_eq!(loaded_keypair.public, keypair.public); |
| 1033 | } |
| 1034 | |
| 1035 | #[test] |
| 1036 | fn test_store_load_by_name() { |
nothing calls this directly
no test coverage detected