v0.2.1-pre.002-fix.001

This commit is contained in:
2026-08-17 18:46:52 +02:00
parent 0cff0406ab
commit d3fc0c6d69
8 changed files with 209 additions and 33 deletions

View File

@@ -1,5 +1,5 @@
// file: crates/ksp-onchain-transport-lib/unit_tests/rpc_method.rs
// version: 1
// version: 2
#[test]
fn audited_registry_has_expected_current_and_historical_counts() {
@@ -25,15 +25,17 @@ fn coverage_release_counts_match_recalibrated_matrix() {
let mut accounts_tokens_cluster = 0_usize;
let mut transactions = 0_usize;
let mut blocks_economics = 0_usize;
let mut historical = 0_usize;
for descriptor in super::current_http_rpc_methods() {
match descriptor.coverage_release() {
super::HttpRpcCoverageRelease::V0_2_1 => foundation += 1,
super::HttpRpcCoverageRelease::V0_2_2 => accounts_tokens_cluster += 1,
super::HttpRpcCoverageRelease::V0_2_3 => transactions += 1,
super::HttpRpcCoverageRelease::V0_2_4 => blocks_economics += 1,
super::HttpRpcCoverageRelease::Historical => assert!(false, "current method must not be historical"),
super::HttpRpcCoverageRelease::Historical => historical += 1,
}
}
assert_eq!(historical, 0);
assert_eq!(foundation, 4);
assert_eq!(accounts_tokens_cluster, 22);
assert_eq!(transactions, 11);