Skip to content

Bump mockito from 5.2.0 to 5.4.2 #61

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps mockito from 5.2.0 to 5.4.2.

Changelog

Sourced from mockito's changelog.

5.4.2

  • Require code_builder 4.5.0.
  • Add support for records.
  • Fixed the bug with missing imports for unused type alias arguments.

5.4.1

  • Deprecate the mixingIn argument to MockSpec. Best practice is to avoid any concrete implementation in classes which extend Mock.
  • Fixed generation for clashing type variable names.
  • Require Dart >= 2.19.0.
  • Require analyzer 5.11.0.
  • Fail to generate mocks of sealed/base/final classes.
  • Add new thenReturnInOrder method to mock multiple calls to a single method in order.
  • Add provideDummy/provideDummyBuilder functions for users to supply dummy values to Mockito, to cover cases where codegen can't create one.
  • Allow generating mocks for classes with methods/getters returning non-nullable unknown types.

5.4.0

  • Fix nice mocks generation in mixed mode (generated code is pre null-safety, while mocked class is null-safe).
  • Support typedef-aliased classes in @GenerateMocks and @GenerateNiceMocks
  • Breaking Default generate_for to test/**. Projects that are generating mocks for libraries outside of the test/ directory should add an explicit generate_for argument to include files with mock generating annotations.
  • Require Dart >= 2.17.0.
  • Require analyzer 5.2.0.

5.3.2

  • Support analyzer 5.0.0.

5.3.1

  • Fix analyzer and code_builder dependencies.
  • Reference @GenerateNiceMocks in documentation.
  • Allow generating a mock class which includes overriding members with private types in their signature. Such members cannot be stubbed with mockito, and will only be generated when specified in MockSpec unsupportedMembers.
  • Include required keyword in functions used as default return values.

5.3.0

  • Introduce a new MockSpec parameter, onMissingStub, which allows specifying three actions to take when a real call is made to a mock method with no matching stub. The two existing behaviors are the default

... (truncated)

Commits
  • 1d6064a Prepare to publish
  • cca4858 Fix the unresolved types if used as ignored type-alias arguments
  • 8652886 Prepare for NamedType breaking change in the analyzer.
  • 924f65c Add support for records
  • 40fe2ca Expand constraint on package:http
  • 153c145 Fix violations of prefer_final_locals, prefer_final_in_for_each lints
  • 6e046f9 Don't try to fake unfakable classes
  • 6e778ea Prepare to publish
  • dc58855 Don't abort codegen on return type being a type variable
  • 7c6d309 blast_repo fixes
  • 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 [mockito](https://github.com/dart-lang/mockito) from 5.2.0 to 5.4.2.
- [Release notes](https://github.com/dart-lang/mockito/releases)
- [Changelog](https://github.com/dart-lang/mockito/blob/master/CHANGELOG.md)
- [Commits](dart-lang/mockito@5.2.0...5.4.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dart Pull requests that update Dart code dependencies Pull requests that update a dependency file labels Jan 22, 2024
@dependabot dependabot bot requested a review from blendthink January 22, 2024 18:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dart Pull requests that update Dart code dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants