-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Use params in ImportPSModule() definition #7933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use params in ImportPSModule() definition #7933
Conversation
|
Should we add the change to SDK? |
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a test?
|
@SteveL-MSFT Could you please clarify - seems we haven't test for public APIs at all, only for cmdlets and other language objects. I don't even know where to put it. I even think that most likely there should have been unit tests. |
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we don't have existing tests, I won't block this PR. Based on the discussion of concerns of app compat (even though it was agreed it wouldn't be an issue), it would be nice to have some tests to validate.
|
@SteveL-MSFT I think we need SDK test set. |
|
@twitchax Could you please check that the change works as expected and we haven't regression? |
|
Awesome. It looks good to me. :) |
|
@twitchax Can you confirm that you can compile your code after the change? |
|
Yeah: totally fine. |
PR Summary
Close #6005.
Change method definition
from
public void ImportPSModule(string[] name)to
public void ImportPSModule(params string[] name)PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:to the beginning of the title and remove the prefix when the PR is ready.[feature]if the change is significant or affects feature tests