-
Notifications
You must be signed in to change notification settings - Fork 1.5k
DocC fixes #1942
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
DocC fixes #1942
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
9 changes: 9 additions & 0 deletions
9
...leArchitecture/Documentation.docc/Extensions/Deprecations/ReduceDeprecations.md
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# Deprecations | ||
|
||
Review unsupported `Reduce` APIs. | ||
|
||
## Topics | ||
|
||
### Reducer structure | ||
|
||
- ``Reduce/init(_:environment:)`` |
This file contains hidden or 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 |
---|---|---|
|
@@ -14,4 +14,3 @@ instead. | |
- ``AnyReducer`` | ||
- ``Reducer`` | ||
- ``DebugEnvironment`` | ||
- ``Identified`` |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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
15 changes: 15 additions & 0 deletions
15
Sources/ComposableArchitecture/Documentation.docc/Extensions/Reduce.md
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# ``ComposableArchitecture/Reduce`` | ||
|
||
## Topics | ||
|
||
### Creating a reducer | ||
|
||
- ``init(_:)-17fld`` | ||
|
||
### Type erased reducers | ||
|
||
- ``init(_:)-3rph8`` | ||
|
||
### Deprecations | ||
|
||
- <doc:ReduceDeprecations> |
This file contains hidden or 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 hidden or 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
22 changes: 22 additions & 0 deletions
22
Sources/ComposableArchitecture/Documentation.docc/Extensions/TaskResult.md
This file contains hidden or 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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# ``ComposableArchitecture/TaskResult`` | ||
|
||
## Topics | ||
|
||
### Representing a task result | ||
|
||
- ``success(_:)`` | ||
- ``failure(_:)`` | ||
|
||
### Converting a throwing expression | ||
|
||
- ``init(catching:)`` | ||
|
||
### Accessing a result's value | ||
|
||
- ``value`` | ||
|
||
### Transforming results | ||
|
||
- ``map(_:)`` | ||
- ``flatMap(_:)`` | ||
- ``init(_:)`` |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
---|---|---|
|
@@ -1043,7 +1043,9 @@ extension TestStore where ScopedState: Equatable { | |
let previousState = self.reducer.state | ||
let task = self.store | ||
.send(.init(origin: .send(self.fromScopedAction(action)), file: file, line: line)) | ||
await self.reducer.effectDidSubscribe.stream.first(where: { _ in true }) | ||
for await _ in self.reducer.effectDidSubscribe.stream { | ||
break | ||
} | ||
Comment on lines
-1046
to
+1048
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unrelated sendability fix. |
||
do { | ||
let currentState = self.state | ||
self.reducer.state = previousState | ||
|
@@ -1454,7 +1456,7 @@ extension TestStore where ScopedState: Equatable, Action: Equatable { | |
extension TestStore where ScopedState: Equatable { | ||
/// Asserts a matching action was received from an effect and asserts how the state changes. | ||
/// | ||
/// See ``receive(_:timeout:assert:file:line:)-3myco`` for more information of how to use this | ||
/// See ``receive(_:timeout:assert:file:line:)-2ju31`` for more information of how to use this | ||
/// method. | ||
/// | ||
/// - Parameters: | ||
|
@@ -1491,7 +1493,7 @@ extension TestStore where ScopedState: Equatable { | |
|
||
/// Asserts an action was received matching a case path and asserts how the state changes. | ||
/// | ||
/// See ``receive(_:timeout:assert:file:line:)-4e4m0`` for more information of how to use this | ||
/// See ``receive(_:timeout:assert:file:line:)-8xkqt`` for more information of how to use this | ||
/// method. | ||
/// | ||
/// - Parameters: | ||
|
@@ -1601,7 +1603,7 @@ extension TestStore where ScopedState: Equatable { | |
/// was in the effect that you chose not to assert on. | ||
/// | ||
/// If you only want to check that a particular action case was received, then you might find the | ||
/// ``receive(_:timeout:assert:file:line:)-4e4m0`` overload of this method more useful. | ||
/// ``receive(_:timeout:assert:file:line:)-8xkqt`` overload of this method more useful. | ||
/// | ||
/// - Parameters: | ||
/// - isMatching: A closure that attempts to match an action. If it returns `false`, a test | ||
|
@@ -2402,7 +2404,9 @@ public enum Exhaustivity: Equatable { | |
/// ``TestStore/skipInFlightEffects(strict:file:line:)-5hbsk``. | ||
/// | ||
/// To partially match an action received from an effect, use | ||
/// ``TestStore/receive(_:timeout:assert:file:line:)-4e4m0``. | ||
/// ``TestStore/receive(_:timeout:assert:file:line:)-8xkqt`` or | ||
/// ``TestStore/receive(_:timeout:assert:file:line:)-2ju31``. | ||
|
||
case on | ||
|
||
/// Non-exhaustive assertions. | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying out the new documentation visibility attribute.