feat(tests): add Get-HubberReports and Get-Reports functions#8
Conversation
| Reset-InvokeCommandMock | ||
| Mock_Database | ||
| $filePath = Get-MockFileFullPath -fileName "hubbers.json" | ||
| $result = Import-HubbersListV2 -Path $filePath |
Check warning
Code scanning / PSScriptAnalyzer
The variable 'result' is assigned but never used. Warning
| Reset-InvokeCommandMock | ||
| Mock_Database | ||
| $filePath = Get-MockFileFullPath -fileName "hubbers.json" | ||
| $result = Import-HubbersList -Path $filePath |
Check warning
Code scanning / PSScriptAnalyzer
The variable 'result' is assigned but never used. Warning
| @@ -0,0 +1,38 @@ | |||
| function Get-HubberReports { | |||
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'Get-HubberReports' uses a plural noun. A singular noun should be used instead. Warning
| function Get-HubberReports { | ||
| [CmdletBinding()] | ||
| param ( | ||
| [Parameter(ValueFromPipeline,ValueFromPipelineByPropertyName,Position=0)][string]$Handle |
Check warning
Code scanning / PSScriptAnalyzer
Command accepts pipeline input but has not defined a process block. Warning
| function Get-HubberReports { | ||
| [CmdletBinding()] | ||
| param ( | ||
| [Parameter(ValueFromPipeline,ValueFromPipelineByPropertyName,Position=0)][string]$Handle |
Check warning
Code scanning / PSScriptAnalyzer
Command accepts pipeline input but has not defined a process block. Warning
|
|
||
| } Export-ModuleMember -Function Get-HubberReports | ||
|
|
||
| function Get-Reports{ |
Check warning
Code scanning / PSScriptAnalyzer
The cmdlet 'Get-Reports' uses a plural noun. A singular noun should be used instead. Warning
| @@ -0,0 +1,38 @@ | |||
| function Get-HubberReports { | |||
Check notice
Code scanning / PSScriptAnalyzer
The cmdlet 'Get-HubberReports' does not have a help comment. Note
Introduce the
Get-HubberReportsandGet-Reportsfunctions to retrieve reports associated with hubbers. Add corresponding tests to ensure functionality and handle cases where a hubber is not found.