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

cargo: bump the minor group with 1 update #1702

Merged
merged 1 commit into from
Jan 15, 2024

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 15, 2024

Bumps the minor group with 1 update: googletest.

Updates googletest from 0.10.0 to 0.11.0

Release notes

Sourced from googletest's releases.

v0.11.0

API Changes

  • The Minimum Rust Supported Version was updated from 1.59 to 1.66

  • The property! and matches_pattern! matchers use * instead of ref to handle properties returned by reference. For instance, to match the following structure:

    struct Strukt { a_field: i32 }
    impl Strukt {
      fn get_a_field(&self) -> &i32 {&self.a_field}
    }
    

    OLD:

    verify_that(Strukt{a_field: 123}, property!(ref Strukt.get_a_field(), eq(123))
    

    NEW:

    verify_that(Strukt{a_field: 123}, property!(*Strukt.get_a_field(), eq(123))
    
  • Macro matchers are not exported on the top level anymore but exported in the googletest::matchers module as well as the googletest::prelude module. OLD:

    use googletest::elements_are;
    verify_that(vec![1,2,3], elements_are![1,2,3])
    

    NEW:

    use googletest::matchers::elements_are;
    verify_that(vec![1,2,3], elements_are![1,2,3])
    
  • Matcher::explain_match and Matcher::describe now returns a Description instead of a String. Handling of wrapping matcher motivated this change and will make them simpler to write. For simple matchers, this change should be straightforward. OLD:

    impl Matcher for MyMatcher {
      ...
      fn explain_match(&self, actual: &Self::Actual) -> String {
        "explanation".to_string()
      }
      fn describe(&self) -> String {
        "description".to_string()
      }
    }
    

    NEW:

    impl Matcher for MyMatcher {
      ...
      fn explain_match(&self, actual: &Self::Actual) -> Description {
        "explanation".into()
    

... (truncated)

Commits
  • 91a15f5 Bump the version number in Cargo.toml to 0.11.
  • 5d3724c Merge pull request #345 from google:support-should-panic
  • 0017a85 Add support for #[should_panic] to the #[googletest::test] macro.
  • 8631e93 Merge pull request #263 from google:inline-color
  • 2ab6fac Merge pull request #344 from google:flip_eq
  • fa6aabf Flip the PartialEq constaint on EqMatcher
  • 147862d Merge pull request #326 from google:use-description-for-structured-output
  • 41127ca Merge pull request #341 from google:support-trailing-comma-in-top-level-macros
  • 0a13b0a Add support for trailing commas on assert_that! and expect_that!.
  • 3edb5e6 Reorder the elements of the module description_renderer so that the public ...
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the minor group with 1 update: [googletest](https://github.com/google/googletest-rust).


Updates `googletest` from 0.10.0 to 0.11.0
- [Release notes](https://github.com/google/googletest-rust/releases)
- [Commits](google/googletest-rust@v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: googletest
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file rust Pull requests that update Rust code labels Jan 15, 2024
@dependabot dependabot bot requested review from djmitche, mgeisler and qwandor January 15, 2024 13:56
@mgeisler mgeisler merged commit 3f1957c into main Jan 15, 2024
32 checks passed
@mgeisler mgeisler deleted the dependabot/cargo/minor-992a3678cf branch January 15, 2024 21:40
@mgeisler
Copy link
Collaborator

Yay, the grouping seems to work — but it doesn't improve the PR description...

I edited the commit message by hand here and I think we have to do this going forward.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants