Skip to content
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

Add AsyncPredicate - Matchers with AsyncExpressions #1056

Merged
merged 8 commits into from
Jul 13, 2023
Merged

Conversation

younata
Copy link
Member

@younata younata commented May 7, 2023

  • This adds AsyncPredicate, a companion to Predicate which works with AsyncExpression for creating matchers that can utilize async/await.
  • AsyncPredicate does not replace or subsume Predicate, this is an entirely additive change.
  • Creates an async variant of containsElementSatisfying that takes in an async function. Does not replace the existing containsElementSatisfying.
  • Creates variants of satisfyAnyOf and satisfyAllOf that take in both AsyncPredicate and Predicate. Again, these do not replace the existing satisfyAnyOf/satisfyAllOf matchers, but instead complements them so that you can compose matchers that use both AsyncPredicate and traditional Predicate.
  • Creates async variants of allPass.
  • Updates documentation.

Checklist - While not every PR needs it, new features should consider this list:

  • Does this have tests?
  • Does this have documentation?
  • Does this break the public API (Requires major version bump)?
  • Is this a new feature (Requires minor version bump)?

@younata younata changed the title Add AsyncPredicate - Matches with AsyncExpressions Add AsyncPredicate - Matchers with AsyncExpressions May 7, 2023
@younata younata marked this pull request as ready for review July 13, 2023 04:49
@younata younata merged commit 7f0621b into main Jul 13, 2023
13 checks passed
@younata younata deleted the add_asyncpredicate branch July 13, 2023 05:21
cgrindel-self-hosted-renovate bot added a commit to cgrindel/rules_swift_package_manager that referenced this pull request Jul 15, 2023
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [Quick/Nimble](https://togithub.com/Quick/Nimble) | minor | `from:
"v12.0.1"` -> `from: "v12.1.0"` |

---

### Release Notes

<details>
<summary>Quick/Nimble (Quick/Nimble)</summary>

### [`v12.1.0`](https://togithub.com/Quick/Nimble/releases/tag/v12.1.0):
- AsyncPredicate

[Compare
Source](https://togithub.com/Quick/Nimble/compare/v12.0.1...v12.1.0)

#### Highlights

-   You can now create Predicates that run in async contexts.

#### What's Changed

- Add AsyncPredicate - Matchers with AsyncExpressions by
[@&#8203;younata](https://togithub.com/younata) in
[Quick/Nimble#1056
- Remove unused constant by
[@&#8203;peterringset](https://togithub.com/peterringset) in
[Quick/Nimble#1064

#### New Contributors

- [@&#8203;peterringset](https://togithub.com/peterringset) made their
first contribution in
[Quick/Nimble#1064

**Full Changelog**:
Quick/Nimble@v12.0.1...v12.1.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Renovate
Bot](https://togithub.com/renovatebot/renovate).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi44LjkiLCJ1cGRhdGVkSW5WZXIiOiIzNi44LjkiLCJ0YXJnZXRCcmFuY2giOiJtYWluIn0=-->

Co-authored-by: Self-hosted Renovate Bot <361546+cgrindel-self-hosted-renovate[bot]@users.noreply.github.enterprise.com>
@ikesyo ikesyo mentioned this pull request Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant