Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored and github-actions[bot] committed Oct 3, 2024
1 parent 4cd6251 commit e98d09b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Benchmark
import ComposableArchitecture
import Foundation

private func initialState(for nesting: Int) -> Feature.State {
(1..<nesting).reduce(into: Feature.State()) { state, _ in state = Feature.State(child: state) }
Expand All @@ -17,8 +18,6 @@ private func scopedStore(for nesting: Int, from root: StoreOf<Feature>? = nil) -
}
}

import Foundation

let benchmarks = { @Sendable in
Benchmark("Store.Scope") { @MainActor benchmark async in
benchmark.startMeasurement()
Expand Down
2 changes: 1 addition & 1 deletion Benchmarks/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ let package = Package(
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark")
]
),
)
]
)
8 changes: 4 additions & 4 deletions Tests/ComposableArchitectureTests/EffectTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ final class EffectTests: BaseTCATestCase {

let effect = Effect<Int>.merge(
(1...3).map { count in
.run { send in
try await clock.sleep(for: .seconds(count))
await send(count)
}
.run { send in
try await clock.sleep(for: .seconds(count))
await send(count)
}
}
)

Expand Down

0 comments on commit e98d09b

Please sign in to comment.