brunocodutra / reducer

A predictable reactive framework for Rust apps inspired by Redux
https://crates.io/crates/reducer
MIT License
58 stars 1 forks source link

Update mockall requirement from 0.8.3 to 0.9.0 #113

Closed dependabot[bot] closed 3 years ago

dependabot[bot] commented 3 years ago

Updates the requirements on mockall to permit the latest version.

Changelog

Sourced from mockall's changelog.

[0.9.0] - 2020-12-21

Added

  • Added the ability to mock methods returning impl Future or impl Stream. Unlike other traits, these two aren't very useful in a Box. Instead, Mockall will now change the Expectation's return type to Pin<Box<_>>. (#229)

  • Added the ability to mock methods returning references to trait objects. (#213)

  • mock! supports a new syntax: "impl Trait for". It has two benefits:

    • It can implement a generic trait for specific generic type(s).
    • It allows mocking a non-local trait. The syntax looks like this:
      mock! {
          Bar {}
          impl Foo<i32> for Bar {
              fn foo(&self, x: i32) -> i32;
          }
      }
    

    (#205)

  • #[automock] now works on modules even without the nightly feature, and no longer requires #[feature(proc_macro_hygiene)]. (#198)

Changed

  • mock! now requires visibility specifiers for inherent methods. (#207)

  • Changed the syntax for mocking foreign functions. Instead of using #[automock] directly on the extern block, you must wrap the extern block in a module, and #[automock] that module. The old method is deprecated. (#201)

Fixed

  • Fixed mocking methods that return Self inside of a trait object with multiple bounds. For example: -> impl Future<Output=Self> + Send (3400916)

  • Fixed setting multiple expectations on generic methods whose only generic type is the return. (#238)

... (truncated)

Commits


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 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)
codecov[bot] commented 3 years ago

Codecov Report

Merging #113 (4b818ae) into master (db42bb3) will increase coverage by 0.07%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #113      +/-   ##
==========================================
+ Coverage   86.53%   86.61%   +0.07%     
==========================================
  Files          18       18              
  Lines         364      366       +2     
==========================================
+ Hits          315      317       +2     
  Misses         49       49              
Impacted Files Coverage Δ
src/dispatcher.rs 100.00% <100.00%> (ø)
src/reactor.rs 100.00% <100.00%> (ø)
src/reducer.rs 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update db42bb3...4b818ae. Read the comment docs.