Skip to content

feat(tests): add Get-HubberReports and Get-Reports functions - #8

Merged
rulasg merged 1 commit into
mainfrom
Get-HubberReports
Dec 18, 2025
Merged

feat(tests): add Get-HubberReports and Get-Reports functions#8
rulasg merged 1 commit into
mainfrom
Get-HubberReports

Conversation

@rulasg

@rulasg rulasg commented Dec 18, 2025

Copy link
Copy Markdown
Owner

Introduce the Get-HubberReports and Get-Reports functions to retrieve reports associated with hubbers. Add corresponding tests to ensure functionality and handle cases where a hubber is not found.

@rulasg
rulasg merged commit 73b63d0 into main Dec 18, 2025
2 checks passed
@rulasg
rulasg deleted the Get-HubberReports branch December 18, 2025 10:15
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

The variable 'result' is assigned but never used.
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

The variable 'result' is assigned but never used.
@@ -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

The cmdlet 'Get-HubberReports' uses a plural noun. A singular noun should be used instead.
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

Command accepts pipeline input but has not defined a process block.
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

Command accepts pipeline input but has not defined a process block.

} 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

The cmdlet 'Get-Reports' uses a plural noun. A singular noun should be used instead.
@@ -0,0 +1,38 @@
function Get-HubberReports {

Check notice

Code scanning / PSScriptAnalyzer

The cmdlet 'Get-HubberReports' does not have a help comment. Note

The cmdlet 'Get-HubberReports' does not have a help comment.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants