pub fn from_composable_setup<S: Into<String>>(
    name: S,
    env: &InternetComputer,
    before_tests: Option<Setup>,
    ts: impl Iterator<Item = ComposableTest>,
    experimental: bool,
) -> Pot {
    let tests: Vec<_> = ts.collect();
    Pot {
        derived_name: format!("{}:{}", name.into(), env.summarize()),
        env: env.clone(),
        test: Test::Composable {
            before_tests,
            tests,
        },
        experimental,
    }
}
/// Builds a pot from an iterator of composable tests with a setup phase
Builds a pot from an iterator of composable tests with a setup phase
Builds a pot from an iterator of composable tests with a setup phase
pub fn from_composable_setup<S: Into<String>>(
    name: S,
    env: &InternetComputer,
    before_tests: Option<Setup>,
    ts: impl Iterator<Item = ComposableTest>,
    experimental: bool,
) -> Pot {
    let tests: Vec<_> = ts.collect();
    Pot {
        derived_name: format!("{}:{}", name.into(), env.summarize()),
        env: env.clone(),
        test: Test::Composable {
            before_tests,
            tests,
        },
        experimental,
    }
}
pub fn from_composable_setup < S : Into < String > > ( name : S , env : & InternetComputer , before_tests : Option < Setup > , ts : impl Iterator < Item = ComposableTest > , experimental : bool , ) -> Pot { let tests : Vec < _ > = ts . collect ( ) ; Pot { derived_name : format ! ( " " name into ( ) env summarize ( ) ) , env : env . clone ( ) , test : Test :: Composable { before_tests , tests , } , experimental , } }
Builds a pot from an iterator of composable tests with a setup phase
Builds a pot from an iterator of composable tests with a setup phase
name
S
env
&InternetComputer
before_tests
Option<Setup>
ts
impl Iterator<Item = ComposableTest>
experimental
bool
name
S
env
&InternetComputer
before_tests
Option<Setup>
ts
impl Iterator<Item = ComposableTest>
experimental
bool