test: add unit test to catch missing distribution to subsystems faster (#2495)
* test: add unit test to catch missing distribution to subsystems faster * add a simple count * introduce proc macro to generate dispatch type * refactor * refactor * chore: add license * fixup unit test * fixup merge * better errors * better fmt * fix error spans * better docs * better error messages * ui test foo * Update node/subsystem/dispatch-gen/src/lib.rs Co-authored-by:Bastian Köcher <bkchr@users.noreply.github.com> * Update node/network/bridge/src/lib.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * Update node/subsystem/Cargo.toml Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * Update node/subsystem/dispatch-gen/src/lib.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * Update node/subsystem/dispatch-gen/src/lib.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * Update node/network/bridge/src/lib.rs Co-authored-by:
Andronik Ordian <write@reusable.software> * fix compilation * use find_map * drop the silly 2, use _inner instead * Update node/network/bridge/src/lib.rs Co-authored-by:
Andronik Ordian <write@reusable.software> * Update node/subsystem/dispatch-gen/src/lib.rs Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> * nail deps down * more into() * flatten * missing use statement * fix messages order Co-authored-by:
Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by:
Andronik Ordian <write@reusable.software>
Showing
- polkadot/Cargo.lock 30 additions, 4 deletionspolkadot/Cargo.lock
- polkadot/Cargo.toml 1 addition, 0 deletionspolkadot/Cargo.toml
- polkadot/cli/src/browser.rs 4 additions, 9 deletionspolkadot/cli/src/browser.rs
- polkadot/node/network/bridge/src/lib.rs 56 additions, 46 deletionspolkadot/node/network/bridge/src/lib.rs
- polkadot/node/subsystem/Cargo.toml 1 addition, 0 deletionspolkadot/node/subsystem/Cargo.toml
- polkadot/node/subsystem/dispatch-gen/Cargo.toml 18 additions, 0 deletionspolkadot/node/subsystem/dispatch-gen/Cargo.toml
- polkadot/node/subsystem/dispatch-gen/src/lib.rs 208 additions, 0 deletionspolkadot/node/subsystem/dispatch-gen/src/lib.rs
- polkadot/node/subsystem/dispatch-gen/tests/ui/err-01-missing-skip.rs 37 additions, 0 deletions...de/subsystem/dispatch-gen/tests/ui/err-01-missing-skip.rs
- polkadot/node/subsystem/dispatch-gen/tests/ui/err-01-missing-skip.stderr 14 additions, 0 deletions...ubsystem/dispatch-gen/tests/ui/err-01-missing-skip.stderr
- polkadot/node/subsystem/dispatch-gen/tests/ui/err-02-missing-from.rs 41 additions, 0 deletions...de/subsystem/dispatch-gen/tests/ui/err-02-missing-from.rs
- polkadot/node/subsystem/dispatch-gen/tests/ui/err-02-missing-from.stderr 10 additions, 0 deletions...ubsystem/dispatch-gen/tests/ui/err-02-missing-from.stderr
- polkadot/node/subsystem/dispatch-gen/tests/ui/ok-01-with-intermediate.rs 48 additions, 0 deletions...ubsystem/dispatch-gen/tests/ui/ok-01-with-intermediate.rs
- polkadot/node/subsystem/src/lib.rs 2 additions, 2 deletionspolkadot/node/subsystem/src/lib.rs
- polkadot/node/subsystem/src/messages.rs 28 additions, 6 deletionspolkadot/node/subsystem/src/messages.rs
Please register or sign in to comment