From 240d4759544e68e8c5a939cea4f00c8e1341d3ee Mon Sep 17 00:00:00 2001 From: Erich Gubler Date: Fri, 21 Jun 2024 11:28:35 -0400 Subject: [PATCH] fixup! WIP: refactor: add and validate `TestType` field in `SpecPath` --- moz-webgpu-cts/src/wpt/path.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/moz-webgpu-cts/src/wpt/path.rs b/moz-webgpu-cts/src/wpt/path.rs index b99802e..e5060d7 100644 --- a/moz-webgpu-cts/src/wpt/path.rs +++ b/moz-webgpu-cts/src/wpt/path.rs @@ -83,10 +83,10 @@ pub(crate) enum SpecType { } impl SpecType { - pub fn from_spec_path_base_name(test_base_name: &str) -> Option<(Self, &str)> { + pub fn from_spec_path_base_name(base_name: &str) -> Option<(Self, &str)> { // TODO: auto-generate `enum` variants? [Self::Html].into_iter().find_map(|variant| { - test_base_name + base_name .strip_suffix(variant.file_extension()) .map(|some| (variant, some)) })