Skip to content

Commit

Permalink
Run swift-format
Browse files Browse the repository at this point in the history
  • Loading branch information
tgrapperon authored and github-actions[bot] committed Jul 25, 2024
1 parent 90c775f commit a500893
Show file tree
Hide file tree
Showing 6 changed files with 49 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ import XCTestDynamicOverlay
requestSceneSessionRefresh: .unimplemented(
#"@Dependency(\.application.requestSceneSessionRefresh)"#, placeholder: { _ in }),
registerForRemoteNotifications: .unimplemented(
#"@Dependency(\.application.registerForRemoteNotifications)"#, placeholder: { }),
#"@Dependency(\.application.registerForRemoteNotifications)"#, placeholder: {}),
unregisterForRemoteNotifications: .unimplemented(
#"@Dependency(\.application.unregisterForRemoteNotifications)"#, placeholder: {}),
isRegisteredForRemoteNotifications: .unimplemented(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ import XCTestDynamicOverlay
canOpenURL: .unimplemented(
#"@Dependency(\.application.canOpenURL)"#, placeholder: { _ in false }),
open: .unimplemented(
#"@Dependency(\.application.open)"#, placeholder: { _, _ in false }),
#"@Dependency(\.application.open)"#, placeholder: { _, _ in false }),
sendEvent: .unimplemented(
#"@Dependency(\.application.sendEvent)"#, placeholder: { _ in }),
sendAction: .unimplemented(
Expand Down Expand Up @@ -415,11 +415,12 @@ import XCTestDynamicOverlay
#"@Dependency(\.application.requestSceneSessionActivation)"#,
placeholder: { _, _, _, _ in }),
requestSceneSessionDestruction: .unimplemented(
#"@Dependency(\.application.requestSceneSessionDestruction)"#, placeholder: { _, _, _ in }),
#"@Dependency(\.application.requestSceneSessionDestruction)"#, placeholder: { _, _, _ in }
),
requestSceneSessionRefresh: .unimplemented(
#"@Dependency(\.application.requestSceneSessionRefresh)"#, placeholder: { _ in }),
registerForRemoteNotifications: .unimplemented(
#"@Dependency(\.application.registerForRemoteNotifications)"#, placeholder: { }),
#"@Dependency(\.application.registerForRemoteNotifications)"#, placeholder: {}),
unregisterForRemoteNotifications: .unimplemented(
#"@Dependency(\.application.unregisterForRemoteNotifications)"#, placeholder: {}),
isRegisteredForRemoteNotifications: .unimplemented(
Expand Down
3 changes: 2 additions & 1 deletion Sources/BundleDependency/BundleInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ extension BundleInfo {
static var unimplemented: BundleInfo {
BundleInfo(
_implementation: .init(
bundleIdentifier: .unimplemented(#"@Dependency(\.bundleInfo.bundleIdentifier)"#, placeholder: ""),
bundleIdentifier: .unimplemented(
#"@Dependency(\.bundleInfo.bundleIdentifier)"#, placeholder: ""),
name: .unimplemented(#"@Dependency(\.bundleInfo.name)"#, placeholder: ""),
displayName: .unimplemented(#"@Dependency(\.bundleInfo.displayName)"#, placeholder: ""),
spokenName: .unimplemented(#"@Dependency(\.bundleInfo.spokenName)"#, placeholder: ""),
Expand Down
15 changes: 8 additions & 7 deletions Sources/DependenciesAdditionsBasics/Proxies+Unimplemented.swift
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,14 @@ extension MainActorReadOnlyProxy {
fileID: StaticString = #fileID,
line: UInt = #line
) -> Self {
MainActorReadOnlyProxy(value:
XCTestDynamicOverlay.unimplemented(
description,
placeholder: () as! Value,
fileID: fileID,
line: line
)
MainActorReadOnlyProxy(
value:
XCTestDynamicOverlay.unimplemented(
description,
placeholder: () as! Value,
fileID: fileID,
line: line
)
)
}
public static func unimplemented(
Expand Down
9 changes: 6 additions & 3 deletions Sources/DeviceDependency/UIDeviceDependency_iOS.swift
Original file line number Diff line number Diff line change
Expand Up @@ -235,13 +235,16 @@ import XCTestDynamicOverlay
orientation: .unimplemented(
#"@Dependency(\.device.orientation)"#, placeholder: .unknown),
isGeneratingDeviceOrientationNotifications: .unimplemented(
#"@Dependency(\.device.isGeneratingDeviceOrientationNotifications)"#, placeholder: false),
#"@Dependency(\.device.isGeneratingDeviceOrientationNotifications)"#, placeholder: false
),
beginGeneratingDeviceOrientationNotifications: .unimplemented(
#"@Dependency(\.device.beginGeneratingDeviceOrientationNotifications)"#, placeholder: {}),
#"@Dependency(\.device.beginGeneratingDeviceOrientationNotifications)"#, placeholder: {}
),
endGeneratingDeviceOrientationNotifications: .unimplemented(
#"@Dependency(\.device.endGeneratingDeviceOrientationNotifications)"#, placeholder: {}),
isBatteryMonitoringEnabled: .init(
.unimplemented(#"@Dependency(\.device.isBatteryMonitoringEnabled.get)"#, placeholder: false)),
.unimplemented(
#"@Dependency(\.device.isBatteryMonitoringEnabled.get)"#, placeholder: false)),
batteryState: .unimplemented(
#"@Dependency(\.device.batteryState)"#, placeholder: .unknown),
batteryLevel: .unimplemented(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,25 +245,34 @@
placeholder: nil
),
supportsContentExtensions: .unimplemented(
#"@Dependency(\.userNotificationCenter.supportsContentExtensions)"#, placeholder: false),
#"@Dependency(\.userNotificationCenter.supportsContentExtensions)"#,
placeholder: false),
add: .unimplemented(
#"@Dependency(\.userNotificationCenter.add)"#),
pendingNotificationRequests: .unimplemented(
#"@Dependency(\.userNotificationCenter.pendingNotificationRequests)"#, placeholder: { [] }),
#"@Dependency(\.userNotificationCenter.pendingNotificationRequests)"#,
placeholder: { [] }),
removePendingNotificationRequests: .unimplemented(
#"@Dependency(\.userNotificationCenter.removePendingNotificationRequests)"#, placeholder: { _ in }),
#"@Dependency(\.userNotificationCenter.removePendingNotificationRequests)"#,
placeholder: { _ in }),
removeAllPendingNotificationRequests: .unimplemented(
#"@Dependency(\.userNotificationCenter.removeAllPendingNotificationRequests)"#, placeholder: {}),
#"@Dependency(\.userNotificationCenter.removeAllPendingNotificationRequests)"#,
placeholder: {}),
deliveredNotifications: .unimplemented(
#"@Dependency(\,.userNotificationCenter.deliveredNotifications)"#, placeholder: { [] }),
#"@Dependency(\,.userNotificationCenter.deliveredNotifications)"#, placeholder: { [] }
),
removeDeliveredNotifications: .unimplemented(
#"@Dependency(\.userNotificationCenter.removeDeliveredNotifications)"#, placeholder: { _ in }),
#"@Dependency(\.userNotificationCenter.removeDeliveredNotifications)"#,
placeholder: { _ in }),
removeAllDeliveredNotifications: .unimplemented(
#"@Dependency(\.userNotificationCenter.removeAllDeliveredNotifications)"#, placeholder: {}),
#"@Dependency(\.userNotificationCenter.removeAllDeliveredNotifications)"#,
placeholder: {}),
setNotificationCategories: .unimplemented(
#"@Dependency(\,.userNotificationCenter.setNotificationCategories)"#, placeholder: { _ in }),
#"@Dependency(\,.userNotificationCenter.setNotificationCategories)"#,
placeholder: { _ in }),
notificationCategories: .unimplemented(
#"@Dependency(\,.userNotificationCenter.notificationCategories)"#, placeholder: { [] })
#"@Dependency(\,.userNotificationCenter.notificationCategories)"#, placeholder: { [] }
)
)
)
#else
Expand All @@ -290,19 +299,23 @@
#"@Dependency(\.userNotificationCenter.pendingNotificationRequests)"#,
placeholder: { [] }),
removePendingNotificationRequests: .unimplemented(
#"@Dependency(\.userNotificationCenter.removePendingNotificationRequests)"#, placeholder: { _ in }),
#"@Dependency(\.userNotificationCenter.removePendingNotificationRequests)"#,
placeholder: { _ in }),
removeAllPendingNotificationRequests: .unimplemented(
#"@Dependency(\.userNotificationCenter.removeAllPendingNotificationRequests)"#,
placeholder: { }),
placeholder: {}),
deliveredNotifications: .unimplemented(
#"@Dependency(\,.userNotificationCenter.deliveredNotifications)"#,
#"@Dependency(\,.userNotificationCenter.deliveredNotifications)"#,
placeholder: { [] }),
removeDeliveredNotifications: .unimplemented(
#"@Dependency(\.userNotificationCenter.removeDeliveredNotifications)"#, placeholder: { _ in }),
#"@Dependency(\.userNotificationCenter.removeDeliveredNotifications)"#,
placeholder: { _ in }),
removeAllDeliveredNotifications: .unimplemented(
#"@Dependency(\.userNotificationCenter.removeAllDeliveredNotifications)"#, placeholder: {}),
#"@Dependency(\.userNotificationCenter.removeAllDeliveredNotifications)"#,
placeholder: {}),
setNotificationCategories: .unimplemented(
#"@Dependency(\,.userNotificationCenter.setNotificationCategories)"#, placeholder: { _ in }),
#"@Dependency(\,.userNotificationCenter.setNotificationCategories)"#,
placeholder: { _ in }),
notificationCategories: .unimplemented(
#"@Dependency(\,.userNotificationCenter.notificationCategories)"#,
placeholder: { [] })
Expand Down

0 comments on commit a500893

Please sign in to comment.