fix(testing): Allow space in file names (#5237)

This commit is contained in:
Donny/강동윤 2022-07-17 20:22:25 +09:00 committed by GitHub
parent 1cbfc96917
commit de76868cad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -147,6 +147,7 @@ pub fn expand(callee: &Ident, attr: Config) -> Result<Vec<ItemFn>, Error> {
.replace('/', "__")
.replace('.', "_")
.replace('-', "_")
.replace(' ', "_")
)
.replace("___", "__");
let test_ident = Ident::new(&test_name, Span::call_site());