ably / ably-asset-tracking-swift

iOS client SDKs for the Ably Asset Tracking service.
Apache License 2.0
9 stars 6 forks source link

Create modules to hold shared testing code #501

Closed lawrence-forooghian closed 1 year ago

lawrence-forooghian commented 1 year ago

This introduces new modules AblyAssetTrackingInternalTesting, AblyAssetTrackingSubscriberTesting, and AblyAssetTrackingPublisherTesting, to contain mocks related to the AblyAssetTrackingInternal, AblyAssetTrackingSubscriber, and AblyAssetTrackingPublisher modules respectively. This allows us to remove some mocks that were duplicated across test targets.

When reviewing these, bear in mind that some of the removed and added files in the diff are actually moved files, but I've had to add public all over them so the before and after state are no longer sufficiently similar for Git to treat them as the same file.

See commit messages for more details.

Closes #498.