File tree Expand file tree Collapse file tree 2 files changed +25
-1
lines changed
AmplifyPlugins/Predictions
Tests/AWSPredictionsPluginUnitTests Expand file tree Collapse file tree 2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ final public class AWSPredictionsPlugin: PredictionsCategoryPlugin {
30
30
predictionsService. getEscapeHatch ( client: key)
31
31
}
32
32
33
- init ( ) { }
33
+ public init ( ) { }
34
34
}
35
35
36
36
extension AWSPredictionsPlugin : AmplifyVersionable { }
Original file line number Diff line number Diff line change
1
+ //
2
+ // Copyright Amazon.com Inc. or its affiliates.
3
+ // All Rights Reserved.
4
+ //
5
+ // SPDX-License-Identifier: Apache-2.0
6
+ //
7
+
8
+ import XCTest
9
+ // This import statement needs to stay as it is.
10
+ // Do not add @testable
11
+ import AWSPredictionsPlugin
12
+
13
+ class PredictionsPluginInitTestCase : XCTest {
14
+ /// Given: A non @testable import of the `AWSPredictionsPlugin` module
15
+ /// When: Initializing the `AWSPredictionsPlugin` class
16
+ /// Then: The init should not result in a compiler error
17
+ ///
18
+ /// - Note: The assertion here is that the plugin's init remains
19
+ /// public. In the case of a regression (i.e. making the init private / internal),
20
+ /// the test target will fail to build.
21
+ func testPublicInitializer( ) {
22
+ _ = AWSPredictionsPlugin ( )
23
+ }
24
+ }
You can’t perform that action at this time.
0 commit comments