cuprate/test-utils
hinto-janai aa718e224f
Some checks failed
Audit / audit (push) Has been cancelled
CI / fmt (push) Has been cancelled
CI / typo (push) Has been cancelled
CI / ci (macos-latest, stable, bash) (push) Has been cancelled
CI / ci (ubuntu-latest, stable, bash) (push) Has been cancelled
CI / ci (windows-latest, stable-x86_64-pc-windows-gnu, msys2 {0}) (push) Has been cancelled
Deny / audit (push) Has been cancelled
Doc / build (push) Has been cancelled
Doc / deploy (push) Has been cancelled
test-utils: add crate::rpc::data module (#231)
* test-utils: add `crate::rpc::types` module

* test-utils: conditional json doc-tests

* json: add test data, fix macro doc tests

* json: add all data

* other: add all data

* bin: add skeleton

* docs

* move type to correct file

* rpc: `client/{client,constants}.rs` -> `client.rs`

* lib.rs: remove `clippy::module_inception`
2024-07-19 00:50:27 +01:00
..
src test-utils: add crate::rpc::data module (#231) 2024-07-19 00:50:27 +01:00
Cargo.toml test-utils: add crate::rpc::data module (#231) 2024-07-19 00:50:27 +01:00
README.md test-utils: add crate::rpc::data module (#231) 2024-07-19 00:50:27 +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
  • Raw RPC request/response strings and binary data