-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make all of apollo-testing-support deprecated except for QueueTestNet…
…workTransport and MapTestNetworkTransport
- Loading branch information
1 parent
e8621ac
commit 524c535
Showing
25 changed files
with
196 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
...-testing-support/src/appleMain/kotlin/com/apollographql/apollo3/testing/readFile.apple.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
package com.apollographql.apollo3.testing | ||
|
||
import com.apollographql.apollo3.annotations.ApolloDeprecatedSince | ||
|
||
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0) | ||
@Deprecated("This is only used for internal Apollo tests and will be removed in a future version.") | ||
actual fun shouldUpdateTestFixtures(): Boolean = false | ||
|
||
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0) | ||
@Deprecated("This is only used for internal Apollo tests and will be removed in a future version.") | ||
actual val testsPath: String = "../" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...pollo-testing-support/src/commonMain/kotlin/com/apollographql/apollo3/testing/channels.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...pollo-testing-support/src/commonMain/kotlin/com/apollographql/apollo3/testing/readFile.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,28 @@ | ||
package com.apollographql.apollo3.testing | ||
|
||
import com.apollographql.apollo3.annotations.ApolloDeprecatedSince | ||
import com.apollographql.apollo3.annotations.ApolloExperimental | ||
import okio.FileSystem | ||
|
||
/** | ||
* The host filesystem | ||
*/ | ||
@ApolloExperimental | ||
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0) | ||
@Deprecated("This function is not Apollo specific and will be removed in a future version. Copy/paste it in your codebase if you need it") | ||
expect val HostFileSystem: FileSystem | ||
|
||
@ApolloExperimental | ||
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0) | ||
@Deprecated("This is only used for internal Apollo tests and will be removed in a future version.") | ||
expect fun shouldUpdateTestFixtures(): Boolean | ||
|
||
/** | ||
* The path to the "tests" directory. This assumes all tests are run from a predictable place relative to "tests" | ||
* We need this for JS tests where the CWD is not properly set at the beginning of tests | ||
*/ | ||
@ApolloExperimental | ||
@ApolloDeprecatedSince(ApolloDeprecatedSince.Version.v4_0_0) | ||
@Deprecated("This is only used for internal Apollo tests and will be removed in a future version.") | ||
expect val testsPath: String | ||
|
Oops, something went wrong.