Skip to main content

process_tests

Function process_tests 

Source
pub fn process_tests(
    test_groups: &BTreeMap<String, Vec<usize>>,
    parsed: &[ParsedFile],
    kinds: &BTreeMap<String, UnitKind>,
    unit_tables: &HashMap<String, UnitTable>,
    exports_visibility: &HashMap<String, HashMap<String, Visibility>>,
    unit_consumes: &HashMap<String, Vec<String>>,
    unit_consumes_aliases: &HashMap<String, HashMap<String, String>>,
    unit_uses: &HashMap<String, Vec<String>>,
    broken: &BrokenDeclNames,
    unit_flattened: &HashMap<String, HashMap<String, String>>,
    groups: &BTreeMap<String, Vec<usize>>,
    import_ext: ImportExt,
    contracts: bool,
    emitted_barrels: &mut HashSet<PathBuf>,
    asset_files: &TestAssetFiles<'_>,
    snapshot_files: Option<&BTreeMap<String, String>>,
    d1_migrations: &D1Migrations,
    d1_sql: Option<&D1Sql>,
    binding_modules: &HashMap<String, String>,
    schema_versions: &HashMap<String, i64>,
    unit_callees: &HashMap<String, HashMap<ExprId, Callee>>,
    unit_event_subscriber_shapes: &HashMap<String, HashMap<String, EventSubscriberShape>>,
    plain_json: bool,
    errors: &mut Vec<CompileError>,
    refs: &mut RefSink,
    tys: &Arc<Types>,
) -> (Vec<StagedFile>, Vec<RunnableTest>)
Expand description

P5.4: test <target> suite processing. The checking half (target/stub resolution, duplicate-case-name detection, case/property body type-checking — formerly this function’s own Phases 2-4) now lives in test_suites::phase_test_bodies; only a target that passed every gate comes back, keyed by its resolved stub map, so the loop below is Phase 5 (TypeScript emission) alone, over exactly the targets ready for it.