mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 05:37:58 +00:00
fix : remove _{ } syntax from benchmark macro (#7822)
* commented use of common * hack to pass tests * another hack * remove all commented code * fix the easy tests * temp hack * follow through comma hack until better solution * patch macro * missed one * update benchmarks * update docs * fix docs * removed too much * fix changes Co-authored-by: Shawn Tabrizi <shawntabrizi@gmail.com>
This commit is contained in:
@@ -112,13 +112,8 @@ fn new_test_ext() -> sp_io::TestExternalities {
|
||||
benchmarks!{
|
||||
where_clause { where <T as OtherConfig>::OtherEvent: Into<<T as Config>::Event> }
|
||||
|
||||
_ {
|
||||
// Define a common range for `b`.
|
||||
let b in 1 .. 1000 => ();
|
||||
}
|
||||
|
||||
set_value {
|
||||
let b in ...;
|
||||
let b in 1 .. 1000;
|
||||
let caller = account::<T::AccountId>("caller", 0, 0);
|
||||
}: _ (RawOrigin::Signed(caller), b.into())
|
||||
verify {
|
||||
@@ -126,7 +121,7 @@ benchmarks!{
|
||||
}
|
||||
|
||||
other_name {
|
||||
let b in ...;
|
||||
let b in 1 .. 1000;
|
||||
}: dummy (RawOrigin::None, b.into())
|
||||
|
||||
sort_vector {
|
||||
@@ -142,7 +137,7 @@ benchmarks!{
|
||||
}
|
||||
|
||||
bad_origin {
|
||||
let b in ...;
|
||||
let b in 1 .. 1000;
|
||||
let caller = account::<T::AccountId>("caller", 0, 0);
|
||||
}: dummy (RawOrigin::Signed(caller), b.into())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user