Only search for functions in Constrained Language help tests (#9301)
Only search for functions in Constrained Language help tests ## PR Context Searching for only functions is faster
This commit is contained in:
parent
f5fc0535ac
commit
98b2e147c1
|
@ -79,7 +79,7 @@ try
|
|||
Import-Module -Name $trustedModuleName1 -Force -ErrorAction Stop;
|
||||
"@
|
||||
$command += @'
|
||||
$null = help NestedFn1 2> $null;
|
||||
$null = help -Name NestedFn1 -Category Function 2> $null;
|
||||
$result = Get-Command NestedFn1 2> $null;
|
||||
return ($result -ne $null)
|
||||
'@
|
||||
|
|
Loading…
Reference in a new issue