|
16 | 16 |
|
17 | 17 | #[cfg(any(test, feature = "testing"))] |
18 | 18 | use rstest::rstest; |
19 | | -use stacks_common::types::chainstate::BlockHeaderHash; |
20 | | -use stacks_common::types::StacksEpochId; |
| 19 | +#[cfg(test)] |
| 20 | +use stacks_common::types::{chainstate::BlockHeaderHash, StacksEpochId}; |
21 | 21 |
|
22 | | -use crate::vm::ast::errors::ParseErrors; |
23 | | -use crate::vm::ast::ASTRules; |
24 | 22 | use crate::vm::contexts::Environment; |
25 | | -use crate::vm::errors::{CheckErrors, Error, RuntimeErrorType}; |
26 | | -use crate::vm::tests::{ |
27 | | - env_factory, execute, is_committed, is_err_code_i128 as is_err_code, symbols_from_values, |
28 | | - test_clarity_versions, test_epochs, tl_env_factory, MemoryEnvironmentGenerator, |
29 | | - TopLevelMemoryEnvironmentGenerator, |
| 23 | +use crate::vm::tests::{test_clarity_versions, test_epochs}; |
| 24 | +use crate::vm::types::{PrincipalData, QualifiedContractIdentifier, StandardPrincipalData, Value}; |
| 25 | +#[cfg(test)] |
| 26 | +use crate::vm::{ |
| 27 | + ast::{errors::ParseErrors, ASTRules}, |
| 28 | + errors::{CheckErrors, Error, RuntimeErrorType}, |
| 29 | + tests::{ |
| 30 | + env_factory, execute, is_committed, is_err_code_i128 as is_err_code, symbols_from_values, |
| 31 | + tl_env_factory, MemoryEnvironmentGenerator, TopLevelMemoryEnvironmentGenerator, |
| 32 | + }, |
| 33 | + types::{OptionalData, ResponseData, TypeSignature}, |
| 34 | + {execute as vm_execute, ClarityVersion, ContractContext}, |
30 | 35 | }; |
31 | | -use crate::vm::types::{ |
32 | | - OptionalData, PrincipalData, QualifiedContractIdentifier, ResponseData, StandardPrincipalData, |
33 | | - TypeSignature, Value, |
34 | | -}; |
35 | | -use crate::vm::{execute as vm_execute, ClarityVersion, ContractContext}; |
36 | 36 |
|
37 | 37 | const FACTORIAL_CONTRACT: &str = "(define-map factorials { id: int } { current: int, index: int }) |
38 | 38 | (define-private (init-factorial (id int) (factorial int)) |
|
0 commit comments