cuprate/test-utils/src/data
hinto-janai aeb070ae8d
Replace OnceLock + fn with LazyLock (#256)
* `consensus/`

* `helper/`

* `test-utils/`

* `storage/`

* fix docs + tests + lints

* decomposed_amount: remove `LazyLock`

* clippy
2024-08-20 22:53:32 +01:00
..
block test-utils: return &'static verified superset types (#108) 2024-04-21 01:34:04 +01:00
tx test-utils: return &'static verified superset types (#108) 2024-04-21 01:34:04 +01:00
constants.rs update monero-serai (#201) 2024-08-07 00:48:53 +01:00
mod.rs Replace OnceLock + fn with LazyLock (#256) 2024-08-20 22:53:32 +01:00
README.md test-utils: add data/ (#107) 2024-04-13 02:13:46 +01:00
statics.rs Replace OnceLock + fn with LazyLock (#256) 2024-08-20 22:53:32 +01:00

Data

This module contains:

  • Raw binary, hex, or JSON data for testing purposes

  • Functions to access that data, either raw or typed

  • .bin is a data blob, directly deserializable into types, e.g. monero_serai::block::Block::read::<&[u8]>(&mut blob)

  • .hex is just a hex string of the blob

  • .json is just the data in regular JSON form (as it would be from a JSON-RPC response)

Actual data

Directory File naming scheme Example
block/ $block_hash.{bin,hex,json} bbd604d2ba11ba27935e006ed39c9bfdd99b76bf4a50654bc1e1e61217962698.bin
tx/ $tx_hash.{bin,hex,json} 84d48dc11ec91950f8b70a85af9db91fe0c8abef71ef5db08304f7344b99ea66.bin