Expected: example filenames with + to work.
Actual: test_generator::test_resources panicked with message: "some_fn_name" is not a valid identifier
Looks like the issue is at
|
// Form canonical name without any punctuation/delimiter or special character |
|
fn canonical_fn_name(s: &str) -> String { |
|
// remove delimiters and special characters |
|
s.replace( |
|
&['"', ' ', '.', ':', '-', '*', '/', '\\', '\n', '\t', '\r'][..], |
|
"_", |
|
) |
|
} |
but I am not really sure what would be the exhaustive list of characters needing to be translated to
_. Might be that there are so many caveats that
#5 is the way to go when defaults fail to work? Though in this case I'd just re-create the name mangling with this additional character, so not sure how good overall solution that'd be.
Expected: example filenames with
+to work.Actual:
test_generator::test_resourcespanicked with message:"some_fn_name" is not a valid identifierLooks like the issue is at
test-generator/test-generator/src/lib.rs
Lines 131 to 138 in ce45b1a
_. Might be that there are so many caveats that #5 is the way to go when defaults fail to work? Though in this case I'd just re-create the name mangling with this additional character, so not sure how good overall solution that'd be.