]> Untitled Git - bdk/commit
Change "received_tx" into "populate_test_db" macro
authorLLFourn <lloyd.fourn@gmail.com>
Fri, 1 Jan 2021 02:22:33 +0000 (13:22 +1100)
committerLLFourn <lloyd.fourn@gmail.com>
Fri, 22 Jan 2021 03:23:36 +0000 (14:23 +1100)
commitf74f17e22768991d4cb76bfb4e5f4d68cd5db4a0
treef8bd0c129219d142fd6c8067c8ab4c41033a3e15
parent75669049268bbc294564f8c6e0528e07a546258f
Change "received_tx" into "populate_test_db" macro

A `[cfg(test)]` function is not as helpful as a macro since it can't be
called in the context of a doctest.

Also adds doctest_wallet macro which can be used to create a wallet in a
doctest.
src/database/memory.rs
src/wallet/mod.rs