-
-
Notifications
You must be signed in to change notification settings - Fork 0
feat(tests): add Get-HubberReports and Get-Reports functions #8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.