|
43 | 43 | @available(tvOS, unavailable) |
44 | 44 | @available(watchOS, unavailable) |
45 | 45 | public static func mock( |
46 | | - authorizationStatus: @escaping () -> CLAuthorizationStatus = { _unimplemented("authorizationStatus") }, |
47 | | - create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in _unimplemented("create") }, |
| 46 | + authorizationStatus: @escaping () -> CLAuthorizationStatus = { |
| 47 | + _unimplemented("authorizationStatus") |
| 48 | + }, |
| 49 | + create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in |
| 50 | + _unimplemented("create") |
| 51 | + }, |
48 | 52 | destroy: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("destroy") }, |
49 | 53 | dismissHeadingCalibrationDisplay: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
50 | 54 | _unimplemented("dismissHeadingCalibrationDisplay") |
|
57 | 61 | maximumRegionMonitoringDistance: @escaping (AnyHashable) -> CLLocationDistance = { _ in |
58 | 62 | _unimplemented("maximumRegionMonitoringDistance") |
59 | 63 | }, |
60 | | - monitoredRegions: @escaping (AnyHashable) -> Set<Region> = { _ in _unimplemented("monitoredRegions") }, |
| 64 | + monitoredRegions: @escaping (AnyHashable) -> Set<Region> = { _ in |
| 65 | + _unimplemented("monitoredRegions") |
| 66 | + }, |
61 | 67 | requestAlwaysAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
62 | 68 | _unimplemented("requestAlwaysAuthorization") |
63 | 69 | }, |
64 | | - requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("requestLocation") }, |
| 70 | + requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 71 | + _unimplemented("requestLocation") |
| 72 | + }, |
65 | 73 | requestWhenInUseAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
66 | 74 | _unimplemented("requestWhenInUseAuthorization") |
67 | 75 | }, |
68 | 76 | set: @escaping (_ id: AnyHashable, _ properties: Properties) -> Effect<Never, Never> = { |
69 | 77 | _, _ in _unimplemented("set") |
70 | 78 | }, |
71 | | - significantLocationChangeMonitoringAvailable: @escaping () -> Bool = { _unimplemented("significantLocationChangeMonitoringAvailable") }, |
| 79 | + significantLocationChangeMonitoringAvailable: @escaping () -> Bool = { |
| 80 | + _unimplemented("significantLocationChangeMonitoringAvailable") |
| 81 | + }, |
72 | 82 | startMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> Effect<Never, Never> = { |
73 | 83 | _ in _unimplemented("startMonitoringSignificantLocationChanges") |
74 | 84 | }, |
75 | 85 | startMonitoringForRegion: @escaping (AnyHashable, Region) -> Effect<Never, Never> = { _, _ in |
76 | 86 | _unimplemented("startMonitoringForRegion") |
77 | 87 | }, |
78 | | - startMonitoringVisits: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startMonitoringVisits") |
| 88 | + startMonitoringVisits: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 89 | + _unimplemented("startMonitoringVisits") |
79 | 90 | }, |
80 | | - startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingLocation") |
| 91 | + startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 92 | + _unimplemented("startUpdatingLocation") |
81 | 93 | }, |
82 | 94 | stopMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> Effect<Never, Never> = { |
83 | 95 | _ in _unimplemented("stopMonitoringSignificantLocationChanges") |
84 | 96 | }, |
85 | 97 | stopMonitoringForRegion: @escaping (AnyHashable, Region) -> Effect<Never, Never> = { _, _ in |
86 | 98 | _unimplemented("stopMonitoringForRegion") |
87 | 99 | }, |
88 | | - stopMonitoringVisits: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopMonitoringVisits") }, |
89 | | - startUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingHeading") }, |
90 | | - stopUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingHeading") }, |
91 | | - stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingLocation") } |
| 100 | + stopMonitoringVisits: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 101 | + _unimplemented("stopMonitoringVisits") |
| 102 | + }, |
| 103 | + startUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 104 | + _unimplemented("startUpdatingHeading") |
| 105 | + }, |
| 106 | + stopUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 107 | + _unimplemented("stopUpdatingHeading") |
| 108 | + }, |
| 109 | + stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 110 | + _unimplemented("stopUpdatingLocation") |
| 111 | + } |
92 | 112 | ) -> Self { |
93 | 113 | Self( |
94 | 114 | authorizationStatus: authorizationStatus, |
|
125 | 145 | @available(macOS, unavailable) |
126 | 146 | @available(tvOS, unavailable) |
127 | 147 | public static func mock( |
128 | | - authorizationStatus: @escaping () -> CLAuthorizationStatus = { _unimplemented("authorizationStatus") }, |
129 | | - create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in _unimplemented("create") }, |
| 148 | + authorizationStatus: @escaping () -> CLAuthorizationStatus = { |
| 149 | + _unimplemented("authorizationStatus") |
| 150 | + }, |
| 151 | + create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in |
| 152 | + _unimplemented("create") |
| 153 | + }, |
130 | 154 | destroy: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("destroy") }, |
131 | 155 | dismissHeadingCalibrationDisplay: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
132 | 156 | _unimplemented("dismissHeadingCalibrationDisplay") |
|
138 | 162 | requestAlwaysAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
139 | 163 | _unimplemented("requestAlwaysAuthorization") |
140 | 164 | }, |
141 | | - requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("requestLocation") }, |
| 165 | + requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 166 | + _unimplemented("requestLocation") |
| 167 | + }, |
142 | 168 | requestWhenInUseAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
143 | 169 | _unimplemented("requestWhenInUseAuthorization") |
144 | 170 | }, |
145 | 171 | set: @escaping (_ id: AnyHashable, _ properties: Properties) -> Effect<Never, Never> = { |
146 | 172 | _, _ in _unimplemented("set") |
147 | 173 | }, |
148 | | - startUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingHeading") }, |
149 | | - startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingLocation") |
| 174 | + startUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 175 | + _unimplemented("startUpdatingHeading") |
150 | 176 | }, |
151 | | - stopUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingHeading") }, |
152 | | - stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingLocation") } |
| 177 | + startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 178 | + _unimplemented("startUpdatingLocation") |
| 179 | + }, |
| 180 | + stopUpdatingHeading: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 181 | + _unimplemented("stopUpdatingHeading") |
| 182 | + }, |
| 183 | + stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 184 | + _unimplemented("stopUpdatingLocation") |
| 185 | + } |
153 | 186 | ) -> Self { |
154 | 187 | Self( |
155 | 188 | authorizationStatus: authorizationStatus, |
|
176 | 209 | @available(macOS, unavailable) |
177 | 210 | @available(watchOS, unavailable) |
178 | 211 | public static func mock( |
179 | | - authorizationStatus: @escaping () -> CLAuthorizationStatus = { _unimplemented("authorizationStatus") }, |
180 | | - create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in _unimplemented("create") }, |
| 212 | + authorizationStatus: @escaping () -> CLAuthorizationStatus = { |
| 213 | + _unimplemented("authorizationStatus") |
| 214 | + }, |
| 215 | + create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in |
| 216 | + _unimplemented("create") |
| 217 | + }, |
181 | 218 | destroy: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("destroy") }, |
182 | 219 | location: @escaping (AnyHashable) -> Location = { _ in _unimplemented("location") }, |
183 | 220 | locationServicesEnabled: @escaping () -> Bool = { _unimplemented("locationServicesEnabled") }, |
184 | | - requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("requestLocation") }, |
| 221 | + requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 222 | + _unimplemented("requestLocation") |
| 223 | + }, |
185 | 224 | requestWhenInUseAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
186 | 225 | _unimplemented("requestWhenInUseAuthorization") |
187 | 226 | }, |
188 | 227 | set: @escaping (_ id: AnyHashable, _ properties: Properties) -> Effect<Never, Never> = { |
189 | 228 | _, _ in _unimplemented("set") |
190 | 229 | }, |
191 | | - stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingLocation") } |
| 230 | + stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 231 | + _unimplemented("stopUpdatingLocation") |
| 232 | + } |
192 | 233 | ) -> Self { |
193 | 234 | Self( |
194 | 235 | authorizationStatus: authorizationStatus, |
|
208 | 249 | @available(tvOS, unavailable) |
209 | 250 | @available(watchOS, unavailable) |
210 | 251 | public static func mock( |
211 | | - authorizationStatus: @escaping () -> CLAuthorizationStatus = { _unimplemented("authorizationStatus") }, |
212 | | - create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in _unimplemented("create") }, |
| 252 | + authorizationStatus: @escaping () -> CLAuthorizationStatus = { |
| 253 | + _unimplemented("authorizationStatus") |
| 254 | + }, |
| 255 | + create: @escaping (_ id: AnyHashable) -> Effect<Action, Never> = { _ in |
| 256 | + _unimplemented("create") |
| 257 | + }, |
213 | 258 | destroy: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("destroy") }, |
214 | 259 | headingAvailable: @escaping () -> Bool = { _unimplemented("headingAvailable") }, |
215 | 260 | location: @escaping (AnyHashable) -> Location = { _ in _unimplemented("location") }, |
216 | 261 | locationServicesEnabled: @escaping () -> Bool = { _unimplemented("locationServicesEnabled") }, |
217 | 262 | maximumRegionMonitoringDistance: @escaping (AnyHashable) -> CLLocationDistance = { _ in |
218 | 263 | _unimplemented("maximumRegionMonitoringDistance") |
219 | 264 | }, |
220 | | - monitoredRegions: @escaping (AnyHashable) -> Set<Region> = { _ in _unimplemented("monitoredRegions") }, |
| 265 | + monitoredRegions: @escaping (AnyHashable) -> Set<Region> = { _ in |
| 266 | + _unimplemented("monitoredRegions") |
| 267 | + }, |
221 | 268 | requestAlwaysAuthorization: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
222 | 269 | _unimplemented("requestAlwaysAuthorization") |
223 | 270 | }, |
224 | | - requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("requestLocation") }, |
| 271 | + requestLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 272 | + _unimplemented("requestLocation") |
| 273 | + }, |
225 | 274 | set: @escaping (_ id: AnyHashable, _ properties: Properties) -> Effect<Never, Never> = { |
226 | 275 | _, _ in _unimplemented("set") |
227 | 276 | }, |
228 | | - significantLocationChangeMonitoringAvailable: @escaping () -> Bool = { _unimplemented("significantLocationChangeMonitoringAvailable") }, |
| 277 | + significantLocationChangeMonitoringAvailable: @escaping () -> Bool = { |
| 278 | + _unimplemented("significantLocationChangeMonitoringAvailable") |
| 279 | + }, |
229 | 280 | startMonitoringForRegion: @escaping (AnyHashable, Region) -> Effect<Never, Never> = { _, _ in |
230 | 281 | _unimplemented("startMonitoringForRegion") |
231 | 282 | }, |
232 | 283 | startMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> Effect<Never, Never> = { |
233 | 284 | _ in _unimplemented("startMonitoringSignificantLocationChanges") |
234 | 285 | }, |
235 | | - startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("startUpdatingLocation") |
| 286 | + startUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 287 | + _unimplemented("startUpdatingLocation") |
236 | 288 | }, |
237 | 289 | stopMonitoringForRegion: @escaping (AnyHashable, Region) -> Effect<Never, Never> = { _, _ in |
238 | 290 | _unimplemented("stopMonitoringForRegion") |
239 | 291 | }, |
240 | 292 | stopMonitoringSignificantLocationChanges: @escaping (AnyHashable) -> Effect<Never, Never> = { |
241 | 293 | _ in _unimplemented("stopMonitoringSignificantLocationChanges") |
242 | 294 | }, |
243 | | - stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in _unimplemented("stopUpdatingLocation") } |
| 295 | + stopUpdatingLocation: @escaping (AnyHashable) -> Effect<Never, Never> = { _ in |
| 296 | + _unimplemented("stopUpdatingLocation") |
| 297 | + } |
244 | 298 | ) -> Self { |
245 | 299 | Self( |
246 | 300 | authorizationStatus: authorizationStatus, |
|
0 commit comments