We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b681e65 + 38e472e commit 91ba087Copy full SHA for 91ba087
Sources/TSCUtility/Tracing.swift
@@ -122,7 +122,7 @@ extension Context {
122
return self
123
}
124
125
- var tracing: Tracing.Collection? {
+ public var tracing: Tracing.Collection? {
126
get {
127
guard let collection = self[ObjectIdentifier(Tracing.Collection.self)] as? Tracing.Collection else {
128
return nil
Tests/TSCUtilityTests/TracingTests.swift
@@ -19,7 +19,8 @@ class TracingTests: XCTestCase {
19
collection.events.append(event2)
20
XCTAssertEqual(collection.events.count, 2)
21
var ctx = Context()
22
- ctx.set(collection)
23
- XCTAssertEqual(ctx.get(Tracing.Collection.self).events.count, 2)
+ ctx.tracing = collection
+ XCTAssertEqual(ctx.tracing?.events.count, 2)
24
+
25
26
0 commit comments