mod.rs 745 B

12345678910111213141516171819202122232425262728
  1. #![cfg(test)]
  2. mod public_api;
  3. mod smoke;
  4. mod staking_module;
  5. use public_api::*;
  6. use crate::mock::Test;
  7. use crate::*;
  8. use sp_std::cell::RefCell;
  9. use sp_std::rc::Rc;
  10. use std::panic;
  11. pub(crate) type OpeningId = <Test as Trait>::OpeningId;
  12. pub(crate) type ApplicationId = <Test as Trait>::ApplicationId;
  13. pub(crate) type BlockNumber = <Test as frame_system::Trait>::BlockNumber;
  14. pub(crate) type StakeId = <Test as stake::Trait>::StakeId;
  15. pub(crate) type Balance = <<Test as stake::Trait>::Currency as Currency<
  16. <Test as frame_system::Trait>::AccountId,
  17. >>::Balance;
  18. // Debug test object content. Recurring temporary usage - do not delete.
  19. #[allow(dead_code)]
  20. pub fn debug_print<T: sp_std::fmt::Debug>(obj: T) {
  21. println!("{:?}", obj);
  22. }