Skip to content
Snippets Groups Projects
Commit 74dadb8c authored by Cédric Moreau's avatar Cédric Moreau
Browse files

test: OK for private fields and double maps

parent b1b61a74
No related branches found
No related tags found
No related merge requests found
...@@ -320,6 +320,20 @@ impl StorageIterativeChecker { ...@@ -320,6 +320,20 @@ impl StorageIterativeChecker {
Key::_ManualKey("Multisig".to_string(), "Multisigs".to_string(), "[ Key::_ManualKey("Multisig".to_string(), "Multisigs".to_string(), "[
]".to_string()), ]".to_string()),
Key::_ManualKey("AtomicSwap".to_string(), "PendingSwaps".to_string(), "[ Key::_ManualKey("AtomicSwap".to_string(), "PendingSwaps".to_string(), "[
]".to_string()),
Key::_ManualKey("Grandpa".to_string(), "SetIdSession".to_string(), "[
0 = 0
]".to_string()),
Key::_ManualKey("Cert".to_string(), "StorageIdtyCertMeta".to_string(), "[
1 = IdtyCertMeta { issued_count: 3, next_issuable_on: 0, received_count: 3 }
2 = IdtyCertMeta { issued_count: 3, next_issuable_on: 0, received_count: 3 }
3 = IdtyCertMeta { issued_count: 3, next_issuable_on: 0, received_count: 3 }
4 = IdtyCertMeta { issued_count: 3, next_issuable_on: 0, received_count: 3 }
]".to_string()),
Key::_ManualKey("SmithCert".to_string(), "StorageIdtyCertMeta".to_string(), "[
1 = IdtyCertMeta { issued_count: 2, next_issuable_on: 0, received_count: 2 }
2 = IdtyCertMeta { issued_count: 2, next_issuable_on: 0, received_count: 2 }
3 = IdtyCertMeta { issued_count: 2, next_issuable_on: 0, received_count: 2 }
]".to_string()), ]".to_string()),
] ]
}, },
......
This diff is collapsed.
...@@ -16,37 +16,16 @@ ...@@ -16,37 +16,16 @@
extern crate core; extern crate core;
use codec::Compact;
use frame_support::traits::{Get, PalletInfo, StorageInfo, StorageInfoTrait}; use frame_support::traits::{Get, PalletInfo, StorageInfo, StorageInfoTrait};
use frame_support::{assert_noop, assert_ok, storage}; use frame_support::{assert_noop, assert_ok};
use frame_support::{StorageHasher, Twox128}; use frame_support::{StorageHasher, Twox128};
use maplit::btreemap;
use sp_api::{AsTrieBackend, StateBackend};
use sp_consensus_babe::{AuthorityId, BabeAuthorityWeight};
use sp_core::bounded::WeakBoundedVec;
use sp_core::crypto::Ss58Codec;
use sp_core::sr25519;
use sp_core::Pair;
use sp_keyring::AccountKeyring; use sp_keyring::AccountKeyring;
use sp_runtime::traits::BlockNumberProvider; use sp_runtime::MultiAddress;
use sp_runtime::MultiSigner::Sr25519;
use sp_runtime::{MultiAddress, RuntimeString};
use sp_storage::well_known_keys;
use std::str::FromStr;
use storage::storage_prefix;
use well_known_keys::{CODE, EXTRINSIC_INDEX};
use common::*; use common::*;
use gdev_runtime::opaque::SessionKeys;
use gdev_runtime::*; use gdev_runtime::*;
use pallet_duniter_test_parameters::ParametersStorage;
use pallet_identity::{IdtyStatus, IdtyValue};
use pallet_universal_dividend::FirstEligibleUd;
use crate::common::golden_testing::assert::compare_with_storage;
use crate::common::golden_testing::checker::{Checker, StorageCheck};
use crate::common::golden_testing::iterative::StorageIterativeChecker; use crate::common::golden_testing::iterative::StorageIterativeChecker;
use crate::common::golden_testing::key::Key;
mod common; mod common;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment