Add unit tests to pallet-xcm (#3539)

* init

* reserve transfer asset unit test

* happy path tests for all dispatchables and can teleport assets to self surprisingly enough

* better tests

* minimize mock

* clean

* test send xcm failure when router blocks

* rm numbers to prefer variables

* clean

* test execute with local effects

* rm local env stuff

* copyrights

* fix merge conflict

* appease spellcheck

* fmt

* address review comments

* clean constants

* fmt
This commit is contained in:
Amar Singh
2021-08-03 07:07:30 -04:00
committed by GitHub
parent 24c0d5a51e
commit 90e6d318c7
5 changed files with 432 additions and 1 deletions
+8
View File
@@ -17,6 +17,14 @@ frame-system = { git = "https://github.com/paritytech/substrate", default-featur
xcm = { path = "..", default-features = false }
xcm-executor = { path = "../xcm-executor", default-features = false }
[dev-dependencies]
pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master" }
polkadot-runtime-parachains = { path = "../../runtime/parachains" }
sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" }
sp-io = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false }
xcm-builder = { path = "../xcm-builder" }
polkadot-parachain = { path = "../../parachain" }
[features]
default = ["std"]
std = [