summaryrefslogtreecommitdiff
path: root/platform/ios/test/MGLOverlayTests.swift
diff options
context:
space:
mode:
Diffstat (limited to 'platform/ios/test/MGLOverlayTests.swift')
-rw-r--r--platform/ios/test/MGLOverlayTests.swift25
1 files changed, 25 insertions, 0 deletions
diff --git a/platform/ios/test/MGLOverlayTests.swift b/platform/ios/test/MGLOverlayTests.swift
new file mode 100644
index 0000000000..4bdd90cd60
--- /dev/null
+++ b/platform/ios/test/MGLOverlayTests.swift
@@ -0,0 +1,25 @@
+import XCTest
+import Mapbox
+
+class MGLOverlayTests: XCTestCase {
+
+ func testCoverage() {
+ MGLSDKTestHelpers.checkTestsContainAllMethods(testClass: CustomOverlay.self, in: MGLOverlay.self)
+ }
+
+}
+
+class CustomOverlay: NSObject, MGLOverlay {
+
+ var coordinate = CLLocationCoordinate2D(latitude: 0, longitude: 0)
+ var overlayBounds = MGLCoordinateBounds(sw: CLLocationCoordinate2D(latitude: 0, longitude: 0), ne: CLLocationCoordinate2D(latitude: 0, longitude: 0))
+
+ func testCoordinate() {
+ XCTAssertNotNil(coordinate)
+ }
+
+ func testOverlayBounds() {
+ XCTAssertNotNil(overlayBounds)
+ }
+ func intersects(_ overlayBounds: MGLCoordinateBounds) -> Bool { return false }
+}