Files
MapLibreParticleLab/platform/macos/test/MLNMapViewDelegateIntegrationTests.swift
mwilsnd 20d9e1028c Platform flattening overhaul (#1393)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bart Louwers <bart@emeel.net>
2023-07-26 17:50:34 +02:00

64 lines
2.6 KiB
Swift

import XCTest
import Mapbox
class MLNMapViewDelegateIntegrationTests: XCTestCase {
func testCoverage() {
MLNSDKTestHelpers.checkTestsContainAllMethods(testClass: MLNMapViewDelegateIntegrationTests.self, in: MLNMapViewDelegate.self)
}
}
extension MLNMapViewDelegateIntegrationTests: MLNMapViewDelegate {
func mapView(_ mapView: MLNMapView, shouldChangeFrom oldCamera: MLNMapCamera, to newCamera: MLNMapCamera) -> Bool { return false }
func mapView(_ mapView: MLNMapView, lineWidthForPolylineAnnotation annotation: MLNPolyline) -> CGFloat { return 0 }
func mapView(_ mapView: MLNMapView, annotationCanShowCallout annotation: MLNAnnotation) -> Bool { return false }
func mapView(_ mapView: MLNMapView, imageFor annotation: MLNAnnotation) -> MLNAnnotationImage? { return nil }
func mapView(_ mapView: MLNMapView, alphaForShapeAnnotation annotation: MLNShape) -> CGFloat { return 0 }
func mapViewDidFinishRenderingFrame(_ mapView: MLNMapView, fullyRendered: Bool) {}
func mapViewDidFinishRenderingMap(_ mapView: MLNMapView, fullyRendered: Bool) {}
func mapViewDidBecomeIdle(_ mapView: MLNMapView) {}
func mapViewDidFailLoadingMap(_ mapView: MLNMapView, withError error: Error) {}
func mapView(_ mapView: MLNMapView, didFailToLoadImage imageName: String) -> NSImage? { return nil }
func mapView(_ mapView: MLNMapView, shapeAnnotationIsEnabled annotation: MLNShape) -> Bool { return false }
func mapView(_ mapView: MLNMapView, didDeselect annotation: MLNAnnotation) {}
func mapView(_ mapView: MLNMapView, didSelect annotation: MLNAnnotation) {}
func mapView(_ mapView: MLNMapView, didFinishLoading style: MLNStyle) {}
func mapViewWillStartRenderingFrame(_ mapView: MLNMapView) {}
func mapViewWillStartRenderingMap(_ mapView: MLNMapView) {}
func mapViewWillStartLoadingMap(_ mapView: MLNMapView) {}
func mapViewDidFinishLoadingMap(_ mapView: MLNMapView) {}
func mapViewCameraIsChanging(_ mapView: MLNMapView) {}
func mapView(_ mapView: MLNMapView, cameraDidChangeAnimated animated: Bool) {}
func mapView(_ mapView: MLNMapView, cameraWillChangeAnimated animated: Bool) {}
func mapView(_ mapView: MLNMapView, strokeColorForShapeAnnotation annotation: MLNShape) -> NSColor { return .black }
func mapView(_ mapView: MLNMapView, fillColorForPolygonAnnotation annotation: MLNPolygon) -> NSColor { return .black }
func mapView(_ mapView: MLNMapView, calloutViewControllerFor annotation: MLNAnnotation) -> NSViewController? { return nil }
func mapView(_ mapView: MLNMapView, shouldRemoveStyleImage imageName: String) -> Bool { return false }
}