Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
add invalid pallet arg test
Browse files Browse the repository at this point in the history
  • Loading branch information
sam0x17 committed Oct 27, 2022
1 parent bb71c7f commit 45f9932
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frame/support/test/tests/pallet_ui/pallet_invalid_arg.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#[frame_support::pallet(foo)]
pub mod pallet {}

fn main() {}
5 changes: 5 additions & 0 deletions frame/support/test/tests/pallet_ui/pallet_invalid_arg.stderr
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
error: Invalid pallet macro call: unexpected attribute. Macro call must be bare, such as `#[frame_support::pallet]` or `#[pallet]`, or must specify the `dev_mode` attribute, such as `#[frame_support::pallet(dev_mode)]` or #[pallet(dev_mode)]. No other attributes are supported at this time.
--> tests/pallet_ui/pallet_invalid_arg.rs:1:25
|
1 | #[frame_support::pallet(foo)]
| ^^^

0 comments on commit 45f9932

Please sign in to comment.