Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Updated FileSystem Provider to Split UNC Paths#2713

Closed
dchristian3188 wants to merge 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
dchristian3188:masterCopy head branch name to clipboard
Closed

Updated FileSystem Provider to Split UNC Paths#2713
dchristian3188 wants to merge 2 commits into
PowerShell:masterPowerShell/PowerShell:masterfrom
dchristian3188:masterCopy head branch name to clipboard

Conversation

@dchristian3188

Copy link
Copy Markdown
Contributor

Currently splitting a UNC root on windows will return a empty string.

Please reference:
#2301

@msftclas

Copy link
Copy Markdown

Hi @dchristian3188, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!

The agreement was validated by Microsoft and real humans are currently evaluating your PR.

TTYL, MSBOT;

}

It 'Returns a multilevel path child' {
Split-Path -Path 'C:\Temp\folder1' -Leaf | Should be 'folder1'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use variables for repeated constants and move initializations into BeforeAll.

}

It 'Splits a single level path' {
Split-Path -Path 'C:\Temp' | Should be 'C:\'

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For repeated tests please use -Testcase

{
parentPath = EnsureDriveIsRooted(parentPath);
}
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please fix formatting.

@dchristian3188

Copy link
Copy Markdown
Contributor Author

Thanks iSazonov, never used test cases before. Changes uploaded.

@iSazonov

Copy link
Copy Markdown
Collaborator

@dchristian3188 Thanks! Maybe these tests would have to be here and then we need to bring them to the format of those tests.

Wait for the PG conclusion.

@PowerShellTeam PowerShellTeam added the Review - Needed The PR is being reviewed label Nov 22, 2016
@dchristian3188

Copy link
Copy Markdown
Contributor Author

re-opened under #2788. Sorry new to branching...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Review - Needed The PR is being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.