()
| 47 | |
| 48 | #[tokio::test] |
| 49 | async fn sends_a_transaction() { |
| 50 | let (blockchain, _, _) = setup().await; |
| 51 | let mut transaction_storage = TransactionStorage::new(); |
| 52 | let transaction = new_transaction(Account::random(), blockchain.clone()).await; |
| 53 | assert_eq!(transaction_storage.mempool.len(), 0); |
| 54 | |
| 55 | transaction_storage.send_transaction(transaction); |
| 56 | assert_eq!(transaction_storage.mempool.len(), 1); |
| 57 | } |
| 58 | |
| 59 | #[tokio::test] |
| 60 | async fn gets_a_transaction_receipt() { |
nothing calls this directly
no test coverage detected