You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the cargo bin is the last item in the PATH on windows, a trailing ;
was left behind, which leave an empty segment in the PATH.
Also refactor into unit tests, for faster testing.
This has arguably the same coverage: we know that windows path setting
works in general due to the presence of at least one end to end test;
and it is implemented by calling this one code path; this pure function
in the code path can therefore be unit tested to examine it's corner
case behaviour rather than testing end to end every possible
interaction.
$ time ...
running 1 test
test cli::self_update::windows::tests::windows_uninstall_removes_semicolon_from_path ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 4 filtered out
real 0m0.041s
user 0m0.000s
sys 0m0.030s
$ time ...
running 1 test
test windows_uninstall_removes_semicolon_from_path ... ok
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 56 filtered out
real 0m13.450s
user 0m0.000s
sys 0m0.015s
0 commit comments