Skip to content

Commit eec1425

Browse files
refactor(triage): make {,SubtestBy}TestSet aliases
1 parent 739b4b1 commit eec1425

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

moz-webgpu-cts/src/main.rs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -753,15 +753,16 @@ fn run(cli: Cli) -> ExitCode {
753753
"from metadata files, analyzing results…"
754754
));
755755

756+
type TestSet = BTreeSet<Arc<SectionHeader>>;
757+
type SubtestByTestSet = BTreeMap<Arc<SectionHeader>, IndexSet<Arc<SectionHeader>>>;
758+
756759
#[derive(Clone, Debug, Default)]
757760
struct PerPlatformAnalysis {
758-
tests_with_runner_errors: BTreeSet<Arc<SectionHeader>>,
759-
tests_with_disabled_or_skip: BTreeSet<Arc<SectionHeader>>,
760-
tests_with_crashes: BTreeSet<Arc<SectionHeader>>,
761-
subtests_with_failures_by_test:
762-
BTreeMap<Arc<SectionHeader>, IndexSet<Arc<SectionHeader>>>,
763-
subtests_with_timeouts_by_test:
764-
BTreeMap<Arc<SectionHeader>, IndexSet<Arc<SectionHeader>>>,
761+
tests_with_runner_errors: TestSet,
762+
tests_with_disabled_or_skip: TestSet,
763+
tests_with_crashes: TestSet,
764+
subtests_with_failures_by_test: SubtestByTestSet,
765+
subtests_with_timeouts_by_test: SubtestByTestSet,
765766
}
766767

767768
#[derive(Clone, Debug, Default)]

0 commit comments

Comments
 (0)