Skip to content

Commit 8bcdb6e

Browse files
authored
MetricsTestKit: expose all metrics publicly. This allows users to run checks on counters when they might not know the exact label (#127)
Co-authored-by: Hamzah Malik <[email protected]>
1 parent 9d5ff3d commit 8bcdb6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/MetricsTestKit/TestMetrics.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ extension TestMetrics {
183183
}
184184

185185
/// All the counters which have been created and not destroyed
186-
var counters: [TestCounter] {
186+
public var counters: [TestCounter] {
187187
let counters = self.lock.withLock {
188188
self._counters
189189
}
@@ -220,7 +220,7 @@ extension TestMetrics {
220220
}
221221

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

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

276276
/// All the timers which have been created and not destroyed
277-
var timers: [TestTimer] {
277+
public var timers: [TestTimer] {
278278
let timers = self.lock.withLock {
279279
self._timers
280280
}

0 commit comments

Comments
 (0)