Move BeaconStateTestBuilder
into test mod
This commit is contained in:
parent
4ddbb3197c
commit
1c57eb47f9
@ -1,3 +1,5 @@
|
|||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
use crate::{
|
use crate::{
|
||||||
beacon_state::BeaconStateError, BeaconState, ChainSpec, Deposit, DepositData, DepositInput,
|
beacon_state::BeaconStateError, BeaconState, ChainSpec, Deposit, DepositData, DepositInput,
|
||||||
Eth1Data, Hash256, Keypair,
|
Eth1Data, Hash256, Keypair,
|
||||||
@ -61,10 +63,6 @@ impl BeaconStateTestBuilder {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
|
||||||
mod tests {
|
|
||||||
use super::*;
|
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
pub fn can_produce_genesis_block() {
|
pub fn can_produce_genesis_block() {
|
||||||
let builder = BeaconStateTestBuilder::with_random_validators(2);
|
let builder = BeaconStateTestBuilder::with_random_validators(2);
|
||||||
|
Loading…
Reference in New Issue
Block a user