fn construct_serializable_suite(
    suite_entry: EntityEntry,
    case_entries: Vec<EntityEntry>,
) -> directory::SuiteResult {
    let cases = case_entries
        .into_iter()
        .map(|case_entry| {
            let duration_milliseconds = case_entry.run_time_millis();
            let start_time = case_entry.start_time_millis();
            let EntityEntry { artifact_dir, artifacts, outcome, name, .. } = case_entry;
            directory::TestCaseResultV0 {
                artifacts: artifacts
                    .into_iter()
                    .map(|(name, metadata)| (artifact_dir.join(name), metadata))
                    .collect(),
                outcome: into_serializable_outcome(outcome),
                duration_milliseconds,
                start_time,
                name,
            }
        })
        .collect::<Vec<_>>();
    let duration_milliseconds = suite_entry.run_time_millis();
    let start_time = suite_entry.start_time_millis();
    let EntityEntry { artifact_dir, artifacts, outcome, name, .. } = suite_entry;
    directory::SuiteResult::V0 {
        artifacts: artifacts
            .into_iter()
            .map(|(name, metadata)| (artifact_dir.join(name), metadata))
            .collect(),
        outcome: into_serializable_outcome(outcome),
        cases,
        duration_milliseconds,
        start_time,
        name,
    }
}
/// Construct a serializable version of a test suite.
Construct a serializable version of a test suite.
Construct a serializable version of a test suite .
fn construct_serializable_suite(
    suite_entry: EntityEntry,
    case_entries: Vec<EntityEntry>,
) -> directory::SuiteResult {
    let cases = case_entries
        .into_iter()
        .map(|case_entry| {
            let duration_milliseconds = case_entry.run_time_millis();
            let start_time = case_entry.start_time_millis();
            let EntityEntry { artifact_dir, artifacts, outcome, name, .. } = case_entry;
            directory::TestCaseResultV0 {
                artifacts: artifacts
                    .into_iter()
                    .map(|(name, metadata)| (artifact_dir.join(name), metadata))
                    .collect(),
                outcome: into_serializable_outcome(outcome),
                duration_milliseconds,
                start_time,
                name,
            }
        })
        .collect::<Vec<_>>();
    let duration_milliseconds = suite_entry.run_time_millis();
    let start_time = suite_entry.start_time_millis();
    let EntityEntry { artifact_dir, artifacts, outcome, name, .. } = suite_entry;
    directory::SuiteResult::V0 {
        artifacts: artifacts
            .into_iter()
            .map(|(name, metadata)| (artifact_dir.join(name), metadata))
            .collect(),
        outcome: into_serializable_outcome(outcome),
        cases,
        duration_milliseconds,
        start_time,
        name,
    }
}
fn construct_serializable_suite ( suite_entry : EntityEntry , case_entries : Vec < EntityEntry > , ) -> directory :: SuiteResult { let cases = case_entries . into_iter ( ) . map ( | case_entry | { let duration_milliseconds = case_entry . run_time_millis ( ) ; let start_time = case_entry . start_time_millis ( ) ; let EntityEntry { artifact_dir , artifacts , outcome , name , .. } = case_entry ; directory :: TestCaseResultV0 { artifacts : artifacts . into_iter ( ) . map ( | ( name , metadata ) | ( artifact_dir . join ( name ) , metadata ) ) . collect ( ) , outcome : into_serializable_outcome ( outcome ) , duration_milliseconds , start_time , name , } } ) . collect :: < Vec < _ > > ( ) ; let duration_milliseconds = suite_entry . run_time_millis ( ) ; let start_time = suite_entry . start_time_millis ( ) ; let EntityEntry { artifact_dir , artifacts , outcome , name , .. } = suite_entry ; directory :: SuiteResult :: V0 { artifacts : artifacts . into_iter ( ) . map ( | ( name , metadata ) | ( artifact_dir . join ( name ) , metadata ) ) . collect ( ) , outcome : into_serializable_outcome ( outcome ) , cases , duration_milliseconds , start_time , name , } }
Construct a serializable version of a test suite.
Construct a serializable version of a test suite .
suite_entry
EntityEntry
case_entries
Vec<EntityEntry>
suite_entry
EntityEntry
case_entries
Vec<EntityEntry>