Skip to content

Commit 93771ce

Browse files
committed
fixup! add tests for the global Tracer methods
1 parent a0c0f40 commit 93771ce

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Tests/TracingTests/TracingInstrumentationSystemTests.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,28 +37,28 @@ final class GlobalTracingInstrumentationSystemTests: XCTestCase {
3737
super.tearDown()
3838
InstrumentationSystem.bootstrapInternal(nil)
3939
}
40-
40+
4141
func testItProvidesAccessToATracer() {
4242
let tracer = TestTracer()
43-
43+
4444
XCTAssertNil(InstrumentationSystem._legacyTracer(of: TestTracer.self))
4545
XCTAssertNil(InstrumentationSystem._tracer(of: TestTracer.self))
46-
46+
4747
InstrumentationSystem.bootstrapInternal(tracer)
4848
XCTAssertFalse(InstrumentationSystem.instrument is MultiplexInstrument)
4949
XCTAssert(InstrumentationSystem._instrument(of: TestTracer.self) === tracer)
5050
XCTAssertNil(InstrumentationSystem._instrument(of: NoOpInstrument.self))
51-
51+
5252
XCTAssert(InstrumentationSystem._legacyTracer(of: TestTracer.self) === tracer)
5353
XCTAssert(InstrumentationSystem.legacyTracer is TestTracer)
5454
XCTAssert(InstrumentationSystem._tracer(of: TestTracer.self) === tracer)
5555
XCTAssert(InstrumentationSystem.tracer is TestTracer)
56-
56+
5757
let multiplexInstrument = MultiplexInstrument([tracer])
5858
InstrumentationSystem.bootstrapInternal(multiplexInstrument)
5959
XCTAssert(InstrumentationSystem.instrument is MultiplexInstrument)
6060
XCTAssert(InstrumentationSystem._instrument(of: TestTracer.self) === tracer)
61-
61+
6262
XCTAssert(InstrumentationSystem._legacyTracer(of: TestTracer.self) === tracer)
6363
XCTAssert(InstrumentationSystem.legacyTracer is TestTracer)
6464
XCTAssert(InstrumentationSystem._tracer(of: TestTracer.self) === tracer)
@@ -71,7 +71,7 @@ final class GlobalTracingMethodsTests: XCTestCase {
7171
super.tearDown()
7272
InstrumentationSystem.bootstrapInternal(nil)
7373
}
74-
74+
7575
func testGlobalTracingMethods() async {
7676
// Bootstrap with TestTracer to capture spans
7777
let tracer = TestTracer()

0 commit comments

Comments
 (0)