Skip to content

Commit

Permalink
MetricsTestKit: expose all metrics publicly. This allows users to run…
Browse files Browse the repository at this point in the history
… checks on counters when they might not know the exact label (#127)

Co-authored-by: Hamzah Malik <[email protected]>
  • Loading branch information
hamzahrmalik and hamzahrmalik authored May 26, 2023
1 parent 9d5ff3d commit 8bcdb6e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/MetricsTestKit/TestMetrics.swift
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ extension TestMetrics {
}

/// All the counters which have been created and not destroyed
var counters: [TestCounter] {
public var counters: [TestCounter] {
let counters = self.lock.withLock {
self._counters
}
Expand Down Expand Up @@ -220,7 +220,7 @@ extension TestMetrics {
}

/// All the meters which have been created and not destroyed
var meters: [TestMeter] {
public var meters: [TestMeter] {
let meters = self.lock.withLock {
self._meters
}
Expand All @@ -247,7 +247,7 @@ extension TestMetrics {
}

/// All the recorders which have been created and not destroyed
var recorders: [TestRecorder] {
public var recorders: [TestRecorder] {
let recorders = self.lock.withLock {
self._recorders
}
Expand All @@ -274,7 +274,7 @@ extension TestMetrics {
}

/// All the timers which have been created and not destroyed
var timers: [TestTimer] {
public var timers: [TestTimer] {
let timers = self.lock.withLock {
self._timers
}
Expand Down

0 comments on commit 8bcdb6e

Please sign in to comment.