-
Notifications
You must be signed in to change notification settings - Fork 23
Add tests to free-calls pallet #189
base: feature/free-calls
Are you sure you want to change the base?
Add tests to free-calls pallet #189
Conversation
abdeec1
to
4fb7cf6
Compare
aa3897f
to
9bc4338
Compare
e2018ab
to
a8a8e8e
Compare
2207e34
to
bccb44a
Compare
bccb44a
to
4841313
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Resolve all "unused" related to tests here and all other unused in another PR.
#[pallet::weight(12_345)] | ||
pub fn call_c(origin: OriginFor<T>) -> DispatchResult { | ||
let _who = ensure_signed(origin)?; | ||
|
||
Ok(()) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems unused
mod test_pallet; | ||
|
||
#[cfg(test)] | ||
mod tests; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like config validation function is not covered with tests:
https://github.com/dappforce/subsocial-node/blob/430fe055892bfdda1b328af81b5f9792a2ee559d/pallets/free-calls/src/config.rs#L72
@@ -176,6 +184,7 @@ impl Default for ExtBuilder { | |||
} | |||
} | |||
} | |||
|
|||
impl ExtBuilder { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Include a test scenario, where we'll use this function:
Merge #208 first