diff --git a/reporthandling/results/v1/reportsummary/posturecounters.go b/reporthandling/results/v1/reportsummary/posturecounters.go index 87e83eda..e766334c 100644 --- a/reporthandling/results/v1/reportsummary/posturecounters.go +++ b/reporthandling/results/v1/reportsummary/posturecounters.go @@ -19,6 +19,11 @@ func (pcounter *PostureCounters) Failed() int { return pcounter.FailedCounter } +// deprecated +func (pcounter *PostureCounters) Excluded() int { + return pcounter.ExcludedCounter +} + func (pcounter *PostureCounters) All() int { return pcounter.Passed() + pcounter.Skipped() + pcounter.Failed() } diff --git a/reporthandling/results/v1/reportsummary/resourcecounters.go b/reporthandling/results/v1/reportsummary/resourcecounters.go index 0b518adf..278a2876 100644 --- a/reporthandling/results/v1/reportsummary/resourcecounters.go +++ b/reporthandling/results/v1/reportsummary/resourcecounters.go @@ -9,6 +9,7 @@ type ICounters interface { Passed() int Skipped() int Failed() int + Excluded() int // deprecated All() int } @@ -41,6 +42,11 @@ func (resourceCounters *StatusCounters) Failed() int { return resourceCounters.FailedResources } +// deprecated +func (resourceCounters *StatusCounters) Excluded() int { + return resourceCounters.ExcludedResources +} + // NumberOfAll get the number of all resources func (resourceCounters *StatusCounters) All() int { return resourceCounters.Failed() + resourceCounters.Passed() + resourceCounters.Skipped()