Commit d3af121
committed
feat: add utilities for testing persistence
Added the following functions to test if persistence of `bdk_chain` is
happening correctly.
- `persist_txgraph_changeset`
- `persist_indexer_changeset`
- `persist_local_chain_changeset`
- `persist_last_seen`, `persist_last_evicted`, `persist_first_seen`
- `persist_txouts`
- `persist_txs`
- `persist_anchors`
- `persist_last_revealed`
- `persist_spk_cache`
Even though the first three tests cover every part of the `ChangeSet`s ,
the other tests are retained so as to help in unit testing.1 parent 0f89edb commit d3af121
File tree
4 files changed
+955
-3
lines changed- crates/testenv
- src
4 files changed
+955
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
22 | 24 | | |
23 | 25 | | |
24 | 26 | | |
25 | 27 | | |
26 | 28 | | |
27 | | - | |
| 29 | + | |
28 | 30 | | |
29 | 31 | | |
30 | 32 | | |
31 | | - | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
3 | 5 | | |
4 | 6 | | |
5 | 7 | | |
| |||
0 commit comments