[tests] Add a proc macro to generate tests for OnlineBlockchain types

This commit is contained in:
Alekos Filini
2020-08-10 10:49:34 +02:00
parent c90c752f21
commit 9e5023670e
16 changed files with 1018 additions and 17 deletions

View File

@@ -8,6 +8,8 @@ use crate::types::*;
pub mod keyvalue;
pub mod memory;
pub use memory::MemoryDatabase;
pub trait BatchOperations {
fn set_script_pubkey(
&mut self,
@@ -235,6 +237,7 @@ pub mod test {
timestamp: 123456,
received: 1337,
sent: 420420,
fees: 140,
height: Some(1000),
};