Skip to content

Commit 42d3edd

Browse files
authored
log coverage queue priority (#135)
1 parent 93a3a44 commit 42d3edd

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

Sources/DatadogSDKTesting/Config.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ extension Config: CustomDebugStringConvertible {
207207
Coverage Enabled: \(coverageEnabled)
208208
ITR Enabled: \(itrEnabled)
209209
Excluded Branches: \(excludedBranches)
210+
Code Coverage Priority: \(codeCoveragePriority)
210211
Disable Traces Exporting: \(disableTracesExporting)
211212
Report Hostname: \(reportHostname)
212213
Tracer Trace Id: \(tracerTraceId ?? "nil")

Sources/DatadogSDKTesting/Coverage/CoveragePriority.swift

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
import Foundation
88

9-
enum CodeCoveragePriority: Int, EnvironmentValue {
9+
enum CodeCoveragePriority: Int, EnvironmentValue, CustomDebugStringConvertible {
1010
case background = 0
1111
case utility = 1
1212
case userInitiated = 2
@@ -30,4 +30,13 @@ enum CodeCoveragePriority: Int, EnvironmentValue {
3030
}
3131
self = priority
3232
}
33+
34+
var debugDescription: String {
35+
switch self {
36+
case .background: return "background"
37+
case .utility: return "utility"
38+
case .userInitiated: return "userInitiated"
39+
case .userInteractive: return "userInteractive"
40+
}
41+
}
3342
}

0 commit comments

Comments
 (0)