File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ let package = Package(
22
22
. library( name: " MetricsTestUtils " , targets: [ " MetricsTestUtils " ] ) ,
23
23
] ,
24
24
dependencies: [
25
- . package ( url: " https://github.com/apple/swift-metrics.git " , from: " 2.1.1 " ) ,
25
+ . package ( url: " https://github.com/apple/swift-metrics.git " , from: " 2.3.2 " ) ,
26
26
] ,
27
27
targets: [
28
28
. target(
Original file line number Diff line number Diff line change @@ -149,8 +149,8 @@ extension TestMetrics {
149
149
// MARK: Counter
150
150
151
151
public func expectCounter( _ metric: Counter ) throws -> TestCounter {
152
- guard let counter = metric. handler as? TestCounter else {
153
- throw TestMetricsError . illegalMetricType ( metric: metric. handler , expected: " \( TestCounter . self) " )
152
+ guard let counter = metric. _handler as? TestCounter else {
153
+ throw TestMetricsError . illegalMetricType ( metric: metric. _handler , expected: " \( TestCounter . self) " )
154
154
}
155
155
return counter
156
156
}
@@ -185,8 +185,8 @@ extension TestMetrics {
185
185
// MARK: Recorder
186
186
187
187
public func expectRecorder( _ metric: Recorder ) throws -> TestRecorder {
188
- guard let recorder = metric. handler as? TestRecorder else {
189
- throw TestMetricsError . illegalMetricType ( metric: metric. handler , expected: " \( TestRecorder . self) " )
188
+ guard let recorder = metric. _handler as? TestRecorder else {
189
+ throw TestMetricsError . illegalMetricType ( metric: metric. _handler , expected: " \( TestRecorder . self) " )
190
190
}
191
191
return recorder
192
192
}
@@ -209,8 +209,8 @@ extension TestMetrics {
209
209
// MARK: Timer
210
210
211
211
public func expectTimer( _ metric: CoreMetrics . Timer ) throws -> TestTimer {
212
- guard let timer = metric. handler as? TestTimer else {
213
- throw TestMetricsError . illegalMetricType ( metric: metric. handler , expected: " \( TestTimer . self) " )
212
+ guard let timer = metric. _handler as? TestTimer else {
213
+ throw TestMetricsError . illegalMetricType ( metric: metric. _handler , expected: " \( TestTimer . self) " )
214
214
}
215
215
return timer
216
216
}
You can’t perform that action at this time.
0 commit comments