feat: add weights, benchmarking, mock and tests for ping and teyrchain-info pallets

- ping: weights.rs (WeightInfo trait + implementations), benchmarking.rs
  (v2-style benchmarks for start/start_many/stop/stop_all), mock.rs
  (test runtime with MockXcmSender), tests.rs (26 tests covering all extrinsics)
- teyrchain-info: mock.rs (minimal test runtime), tests.rs (7 tests for
  genesis config and ParaId getter)
- Updated ping lib.rs to use WeightInfo instead of zero weights
- Added WeightInfo = () to testing runtime Config
This commit is contained in:
2026-03-21 15:19:47 +03:00
parent 66a4bfa86b
commit 420ed35169
12 changed files with 912 additions and 6 deletions
Generated
+5
View File
@@ -11244,8 +11244,11 @@ dependencies = [
"parity-scale-codec",
"pezcumulus-pezpallet-xcm",
"pezcumulus-primitives-core",
"pezframe-benchmarking",
"pezframe-support",
"pezframe-system",
"pezsp-core",
"pezsp-io",
"pezsp-runtime",
"pezstaging-xcm",
"scale-info",
@@ -21489,6 +21492,8 @@ dependencies = [
"pezcumulus-primitives-core",
"pezframe-support",
"pezframe-system",
"pezsp-core",
"pezsp-io",
"pezsp-runtime",
"scale-info",
]