Skip to content

Commit 315540d

Browse files
Add public help link test fixtures
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent 0779348 commit 315540d

10 files changed

Lines changed: 34 additions & 2 deletions

File tree

tests/srcTestRepo/src/functions/public/PSModule/Get-PSModuleTest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ function Get-PSModuleTest {
1515
Test-PSModule -Name 'World'
1616
1717
"Hello, World!"
18+
19+
.LINK
20+
https://psmodule.io/PSModuleTest2/Functions/PSModule/Get-PSModuleTest/
1821
#>
1922
[CmdletBinding()]
2023
param (

tests/srcTestRepo/src/functions/public/PSModule/New-PSModuleTest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ function New-PSModuleTest {
1313
1414
"Hello, World!"
1515
16+
.LINK
17+
https://psmodule.io/PSModuleTest2/Functions/PSModule/New-PSModuleTest/
18+
1619
.NOTES
1720
Testing if a module can have a [Markdown based link](https://example.com).
1821
!"#¤%&/()=?`´^¨*'-_+§½{[]}<>|@£$€¥¢:;.,"

tests/srcTestRepo/src/functions/public/SomethingElse/Set-PSModuleTest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
Test-PSModule -Name 'World'
1111
1212
"Hello, World!"
13+
14+
.LINK
15+
https://psmodule.io/PSModuleTest2/Functions/SomethingElse/Set-PSModuleTest/
1316
#>
1417
[Diagnostics.CodeAnalysis.SuppressMessageAttribute(
1518
'PSUseShouldProcessForStateChangingFunctions', '', Scope = 'Function',

tests/srcTestRepo/src/functions/public/Test-PSModuleTest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
Test-PSModule -Name 'World'
1111
1212
"Hello, World!"
13+
14+
.LINK
15+
https://psmodule.io/PSModuleTest2/Functions/Test-PSModuleTest/
1316
#>
1417
[CmdletBinding()]
1518
param (

tests/srcTestRepo/src/functions/public/completers.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
Register-ArgumentCompleter -CommandName New-PSModuleTest -ParameterName Name -ScriptBlock {
1+
<#
2+
.LINK
3+
https://psmodule.io/PSModuleTest2/Functions/completers/
4+
#>
5+
Register-ArgumentCompleter -CommandName New-PSModuleTest -ParameterName Name -ScriptBlock {
26
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters)
37
$null = $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters
48

tests/srcWithManifestTestRepo/src/functions/public/PSModule/Get-PSModuleTest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ function Get-PSModuleTest {
1515
Test-PSModule -Name 'World'
1616
1717
"Hello, World!"
18+
19+
.LINK
20+
https://psmodule.io/PSModuleTest/Functions/PSModule/Get-PSModuleTest/
1821
#>
1922
[CmdletBinding()]
2023
param (

tests/srcWithManifestTestRepo/src/functions/public/PSModule/New-PSModuleTest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ function New-PSModuleTest {
1313
1414
"Hello, World!"
1515
16+
.LINK
17+
https://psmodule.io/PSModuleTest/Functions/PSModule/New-PSModuleTest/
18+
1619
.NOTES
1720
Testing if a module can have a [Markdown based link](https://example.com).
1821
!"#¤%&/()=?`´^¨*'-_+§½{[]}<>|@£$€¥¢:;.,"

tests/srcWithManifestTestRepo/src/functions/public/SomethingElse/Set-PSModuleTest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
1212
"Hello, World!"
1313
14+
.LINK
15+
https://psmodule.io/PSModuleTest/Functions/SomethingElse/Set-PSModuleTest/
16+
1417
.NOTES
1518
Controls:
1619
- i : Enter INSERT mode

tests/srcWithManifestTestRepo/src/functions/public/Test-PSModuleTest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
Test-PSModule -Name 'World'
1111
1212
"Hello, World!"
13+
14+
.LINK
15+
https://psmodule.io/PSModuleTest/Functions/Test-PSModuleTest/
1316
#>
1417
[CmdletBinding()]
1518
param (

tests/srcWithManifestTestRepo/src/functions/public/completers.ps1

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
Register-ArgumentCompleter -CommandName New-PSModuleTest -ParameterName Name -ScriptBlock {
1+
<#
2+
.LINK
3+
https://psmodule.io/PSModuleTest/Functions/completers/
4+
#>
5+
Register-ArgumentCompleter -CommandName New-PSModuleTest -ParameterName Name -ScriptBlock {
26
param($commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters)
37
$null = $commandName, $parameterName, $wordToComplete, $commandAst, $fakeBoundParameters
48

0 commit comments

Comments
 (0)