Benchmark Utility Pallet (#5384)

* Move tests

* Move around feature cfgs

* Start benchmarks

* as_multi bench

* finish

* fix tests

* Update frame/utility/src/benchmarking.rs

Co-Authored-By: Marcio Diaz <marcio.diaz@gmail.com>

* Update Cargo.toml

* fix test

Co-authored-by: Marcio Diaz <marcio.diaz@gmail.com>
This commit is contained in:
Shawn Tabrizi
2020-03-31 22:53:21 +02:00
committed by GitHub
parent 63e6f81776
commit 74b008a729
23 changed files with 653 additions and 451 deletions
@@ -16,6 +16,8 @@
//! Balances pallet benchmarking.
#![cfg(feature = "runtime-benchmarks")]
use super::*;
use frame_system::RawOrigin;
+2 -6
View File
@@ -148,14 +148,10 @@
#![cfg_attr(not(feature = "std"), no_std)]
#[cfg(test)]
mod tests_local;
#[cfg(test)]
mod tests_composite;
#[cfg(test)]
#[macro_use]
mod tests;
#[cfg(feature = "runtime-benchmarks")]
mod tests_local;
mod tests_composite;
mod benchmarking;
use sp_std::prelude::*;
+2
View File
@@ -16,6 +16,8 @@
//! Macro for creating the tests for the module.
#![cfg(test)]
#[macro_export]
macro_rules! decl_tests {
($test:ty, $ext_builder:ty, $existential_deposit:expr) => {
@@ -16,6 +16,8 @@
//! Test utilities
#![cfg(test)]
use sp_runtime::{Perbill, traits::{ConvertInto, IdentityLookup}, testing::Header};
use sp_core::H256;
use sp_io;
@@ -16,6 +16,8 @@
//! Test utilities
#![cfg(test)]
use sp_runtime::{Perbill, traits::{ConvertInto, IdentityLookup}, testing::Header};
use sp_core::H256;
use sp_io;