8000 Add brief descriptions to the helper functions · PowerShell/PowerShell@fdf00b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit fdf00b2

Browse files
committed
Add brief descriptions to the helper functions
1 parent eadbf06 commit fdf00b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/powershell/Modules/Microsoft.PowerShell.Management/Clear-Content.Tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
# get a random string of characters a-z and A-Z
12
function Get-RandomString
23
{
34
param ( [int]$length = 8 )
45
$chars = .{ ([int][char]'a')..([int][char]'z');([int][char]'A')..([int][char]'Z') }
56
([char[]]($chars | get-random -count $length)) -join ""
67
}
78

9+
# get a random string which is not the name of an existing provider
810
function Get-NonExistantProviderName
911
{
1012
param ( [int]$length = 8 )
@@ -14,6 +16,7 @@ function Get-NonExistantProviderName
1416
$providerName
1517
}
1618

19+
# get a random string which is not the name of an existing drive
1720
function Get-NonExistantDriveName
1821
{
1922
param ( [int]$length = 8 )
@@ -23,6 +26,7 @@ function Get-NonExistantDriveName
2326
$drivename
2427
}
2528

29+
# get a random string which is not the name of an existing function
2630
function Get-NonExistantFunctionName
2731
{
2832
param ( [int]$length = 8 )

0 commit comments

Comments
 (0)
0