Skip to content

Commit addd036

Browse files
pjleonard37Release SDK bot for Maps SDK team
andauthored
Replace random test values (#2486)
Co-authored-by: Release SDK bot for Maps SDK team <[email protected]>
1 parent 76842f6 commit addd036

File tree

84 files changed

+310
-570
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

84 files changed

+310
-570
lines changed

Sources/MapboxMaps/Style/Generated/Light/AmbientLight.swift

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/MapboxMaps/Style/Generated/Light/DirectionalLight.swift

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Sources/MapboxMaps/Style/Generated/Light/FlatLight.swift

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/MapboxMapsTests/Annotations/AnnotationManagerImplTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ final class AnnotationManagerImplTests: XCTestCase {
576576
me.annotations = annotations
577577

578578
// Dragged annotation will be added to internal list of dragged annotations.
579-
let annotationToDrag = annotations.randomElement()!
579+
let annotationToDrag = annotations[0]
580580
harness.map.simulateInteraction(.drag(.begin), .layer(id), feature: annotationToDrag.feature, context: .zero)
581581

582582
XCTAssertTrue(me.annotations.contains(where: { $0.id == annotationToDrag.id }))

Tests/MapboxMapsTests/Annotations/Generated/PointAnnotationIntegrationTests.swift

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/MapboxMapsTests/Annotations/Generated/PointAnnotationManagerTests.swift

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/MapboxMapsTests/Annotations/Generated/PolylineAnnotationIntegrationTests.swift

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/MapboxMapsTests/Annotations/Generated/PolylineAnnotationManagerTests.swift

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Tests/MapboxMapsTests/Camera/Mocks/MockSimpleCameraAnimator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import UIKit
44
final class MockSimpleCameraAnimator: SimpleCameraAnimatorProtocol {
55
@Stubbed var state: UIViewAnimatingState = .inactive
66

7-
@Stubbed var owner: AnimationOwner = .random()
7+
@Stubbed var owner: AnimationOwner = .testConstantValue()
88

99
@Stubbed var animationType: AnimationType = .unspecified
1010

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import MapboxMaps
22

33
extension AnimationOwner {
4-
static func random() -> Self {
5-
return AnimationOwner(rawValue: .randomASCII(withLength: .random(in: 4...10)))
4+
static func testConstantValue() -> Self {
5+
return AnimationOwner(rawValue: .testConstantASCII(withLength: 10))
66
}
77
}

0 commit comments

Comments
 (0)