Skip to content

Commit

Permalink
log coverage queue priority (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
ypopovych authored Sep 12, 2024
1 parent 93a3a44 commit 42d3edd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions Sources/DatadogSDKTesting/Config.swift
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ extension Config: CustomDebugStringConvertible {
Coverage Enabled: \(coverageEnabled)
ITR Enabled: \(itrEnabled)
Excluded Branches: \(excludedBranches)
Code Coverage Priority: \(codeCoveragePriority)
Disable Traces Exporting: \(disableTracesExporting)
Report Hostname: \(reportHostname)
Tracer Trace Id: \(tracerTraceId ?? "nil")
Expand Down
11 changes: 10 additions & 1 deletion Sources/DatadogSDKTesting/Coverage/CoveragePriority.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

import Foundation

enum CodeCoveragePriority: Int, EnvironmentValue {
enum CodeCoveragePriority: Int, EnvironmentValue, CustomDebugStringConvertible {
case background = 0
case utility = 1
case userInitiated = 2
Expand All @@ -30,4 +30,13 @@ enum CodeCoveragePriority: Int, EnvironmentValue {
}
self = priority
}

var debugDescription: String {
switch self {
case .background: return "background"
case .utility: return "utility"
case .userInitiated: return "userInitiated"
case .userInteractive: return "userInteractive"
}
}
}

0 comments on commit 42d3edd

Please sign in to comment.