Skip to content

Commit 29cbfe8

Browse files
stephencelisgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent 84599d2 commit 29cbfe8

File tree

3 files changed

+24
-24
lines changed

3 files changed

+24
-24
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#if compiler(<6.1)
2-
package let testValuesByTestID = LockIsolated<[AnyHashable: DependencyValues]>([:])
2+
package let testValuesByTestID = LockIsolated<[AnyHashable: DependencyValues]>([:])
33
#endif

Sources/DependenciesTestSupport/TestTrait.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
public static var dependencies: Self {
6161
Self { _ in }
6262
}
63-
63+
6464
/// A trait that overrides a test's or suite's dependency.
6565
///
6666
/// Useful for overriding a dependency in a test without incurring the nesting and

Tests/DependenciesTests/PrepareDependenciesTests.swift

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,32 +4,32 @@
44
import Testing
55

66
@Suite struct PrepareDependenciesTests {
7-
#if swift(>=6.1)
8-
@Test(
9-
.serialized,
10-
.dependency(\.uuid, .incrementing),
11-
arguments: [1, 2, 3]
12-
)
13-
func uuid(value: Int) {
14-
@Dependency(\.uuid) var uuid
15-
#expect(uuid() == UUID(0))
16-
}
17-
#else
18-
@Test(
19-
.serialized,
20-
.dependency(\.uuid, .incrementing),
21-
arguments: [1, 2, 3]
22-
)
23-
func uuid(value: Int) {
24-
@Dependency(\.uuid) var uuid
25-
if value == 1 {
7+
#if swift(>=6.1)
8+
@Test(
9+
.serialized,
10+
.dependency(\.uuid, .incrementing),
11+
arguments: [1, 2, 3]
12+
)
13+
func uuid(value: Int) {
14+
@Dependency(\.uuid) var uuid
2615
#expect(uuid() == UUID(0))
27-
} else {
28-
withKnownIssue {
16+
}
17+
#else
18+
@Test(
19+
.serialized,
20+
.dependency(\.uuid, .incrementing),
21+
arguments: [1, 2, 3]
22+
)
23+
func uuid(value: Int) {
24+
@Dependency(\.uuid) var uuid
25+
if value == 1 {
2926
#expect(uuid() == UUID(0))
27+
} else {
28+
withKnownIssue {
29+
#expect(uuid() == UUID(0))
30+
}
3031
}
3132
}
32-
}
3333
#endif
3434

3535
@Test func isolation1() {

0 commit comments

Comments
 (0)