@@ -6,7 +6,7 @@ import XCTest
6
6
class CLGeocoderTests : XCTestCase {
7
7
func test_reverseGeocodeLocation( ) {
8
8
class MockGeocoder : CLGeocoder {
9
- private override func reverseGeocodeLocation( _ location: CLLocation , completionHandler: CLGeocodeCompletionHandler ) {
9
+ private override func reverseGeocodeLocation( _ location: CLLocation , completionHandler: @escaping CLGeocodeCompletionHandler ) {
10
10
after ( interval: 0 ) . then {
11
11
completionHandler ( [ dummyPlacemark] , nil )
12
12
}
@@ -24,7 +24,7 @@ class CLGeocoderTests: XCTestCase {
24
24
func test_geocodeAddressDictionary( ) {
25
25
class MockGeocoder : CLGeocoder {
26
26
27
- private override func geocodeAddressDictionary( _ addressDictionary: [ AnyHashable : Any ] , completionHandler: CLGeocodeCompletionHandler ) {
27
+ private override func geocodeAddressDictionary( _ addressDictionary: [ AnyHashable : Any ] , completionHandler: @escaping CLGeocodeCompletionHandler ) {
28
28
after ( interval: 0.0 ) . then {
29
29
completionHandler ( [ dummyPlacemark] , nil )
30
30
}
@@ -41,7 +41,7 @@ class CLGeocoderTests: XCTestCase {
41
41
42
42
func test_geocodeAddressString( ) {
43
43
class MockGeocoder : CLGeocoder {
44
- override func geocodeAddressString( _ addressString: String , completionHandler: CLGeocodeCompletionHandler ) {
44
+ override func geocodeAddressString( _ addressString: String , completionHandler: @escaping CLGeocodeCompletionHandler ) {
45
45
after ( interval: 0.0 ) . then {
46
46
completionHandler ( [ dummyPlacemark] , nil )
47
47
}
0 commit comments