mockito
mockito copied to clipboard
Mockito-inspired mock library for Dart
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.1 to 4.1.4. Release notes Sourced from actions/checkout's releases. v4.1.4 What's Changed Disable extensions.worktreeConfig when disabling sparse-checkout by @jww3 in actions/checkout#1692 Add dependabot config by @cory-miller in...
Bumps [dart-lang/setup-dart](https://github.com/dart-lang/setup-dart) from 1.6.2 to 1.6.4. Release notes Sourced from dart-lang/setup-dart's releases. v1.6.4 Rebuild JS code to include changes from v1.6.3 v1.6.3 Roll undici dependency to address CVE-2024-30260 and CVE-2024-30261....
#200 Really just inspired in me the idea that Mock should only have final fields; i.e. it should be able to satisfy the @immutable contract if needed (it should be...
In this PR I add a check on mockSpec type to be sure that is an effective MockSpec and not an extension of it. In this way we could use...
Two people on StackOverflow coincidentally today got confused by the error message about `provideDummy`/`provideDummyBuilder`: * https://stackoverflow.com/questions/77205684/#comment136107698_77205684 * https://stackoverflow.com/q/77206987/ The API documentation for [`provideDummy`](https://pub.dev/documentation/mockito/latest/mockito/provideDummy.html) and for [`provideDummyBuilder`](https://pub.dev/documentation/mockito/latest/mockito/provideDummyBuilder.html) could be improved: *...
Spy was removed when we migrated to null safety. Spy also used the mirrors API which introduces problems on some platforms. Are we able to implement the Spy feature using...
Hi everyone, I am working with Mockito in a Flutter project and facing a challenge in testing classes designed with the Chain of Responsibility pattern. Specifically, I need to partially...
Mockito generator fail using a custom superclass that extends MockSpec inside GenerateNiceMocks annotation. Command: `dart run build_runner build` Error: ```log [SEVERE] mockito:mockBuilder on test/mockito_super_test.dart: Null check operator used on a...
I'm trying to run a test to determine if a method is called. In order to do this I'm using the verify method from the mockito package. However, I'm finding...
Hi, With the latest flutter version from master I'm seeing this lint errors: > This class (or a class which this class inherits from) is marked as '@immutable', but one...