Move BeaconStateTestBuilder into test mod

This commit is contained in:
Paul Hauner 2019-02-15 17:07:52 +11:00
parent 4ddbb3197c
commit 1c57eb47f9
No known key found for this signature in database
GPG Key ID: D362883A9218FCC6

View File

@ -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);