runar_test_utils
Test helpers for Runar crates: quick key setup, node configs, and a lightweight mobile simulator for integration tests.
Install
[]
= "0.1"
Quick start
use create_node_test_config;
let config = create_node_test_config?;
// let mut node = runar_node::Node::new(config).await?;
Mobile simulator
use MobileSimulator;
use ;
use Arc;
let logger = new;
let mut sim = new?;
sim.add_user_mobile?;
let node_config = sim.create_node_config?; // QUIC-ready config
Helpers
create_test_mobile_keys()→(MobileKeyManager, network_id)create_test_node_keys(mobile, network_id)→(NodeKeyManager, node_id)create_node_test_config()→NodeConfigcreate_networked_node_test_config(n)→Vec<NodeConfig>(same network)create_simple_mobile_simulation()→MobileSimulatorcreate_test_environment()→(MobileSimulator, NodeConfig)
MSRV
Rust 1.70.0
License
MIT. See LICENSE.