Skip to content

Commit

Permalink
fixup! WIP: refactor: add and validate TestType field in SpecPath
Browse files Browse the repository at this point in the history
  • Loading branch information
ErichDonGubler committed Jun 21, 2024
1 parent 223e007 commit 240d475
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions moz-webgpu-cts/src/wpt/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
})
Expand Down

0 comments on commit 240d475

Please sign in to comment.