cuprate-hinto-janai/test-utils
hinto-janai 32a44a2503
test-utils: compare data against RPC (#115)
* cargo: add `pretty_assertions`

* test-utils: add tests to compare data against RPC data, and fix

* small fixes

* database: fix `cumulative_generated_coins` from test data

block had wrong data which offset all of the asserts
2024-04-25 19:58:45 +01:00
..
src test-utils: compare data against RPC (#115) 2024-04-25 19:58:45 +01:00
Cargo.toml test-utils: compare data against RPC (#115) 2024-04-25 19:58:45 +01:00
README.md test-utils: add rpc module (#110) 2024-04-21 17:11:23 +01:00

Test Utils

This crate contains code that can be shared across multiple Cuprate crates tests, this crate should not be included in any Cuprate crate, only in tests.

It currently contains:

  • Code to spawn monerod instances and a testing network zone
  • Real raw and typed Monero data, e.g. Block, Transaction
  • An RPC client to generate types from cuprate_types