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

build(deps): bump googletest from 0.10.0 to 0.11.0 #1699

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps 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 this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [googletest](https://github.com/google/googletest-rust) 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
...

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 01:50
@mgeisler
Copy link
Collaborator

Let's not merge this, I would prefer to let Dependabot group updates into fewer PRs (at least for patch updates like in the other PRs).

Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 15, 2024

Superseded by #1702.

@dependabot dependabot bot closed this Jan 15, 2024
@dependabot dependabot bot deleted the dependabot/cargo/googletest-0.11.0 branch January 15, 2024 13:56
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