Skip to content

Commit

Permalink
Fix analysis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mosuem committed Oct 21, 2024
1 parent aa0eb2e commit ee75bd1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 23 deletions.
47 changes: 24 additions & 23 deletions pkgs/mockito/lib/mockito.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,42 +16,43 @@
export 'package:test_api/fake.dart' show Fake;

export 'src/dummies.dart'
show provideDummy, provideDummyBuilder, MissingDummyValueError;
show MissingDummyValueError, provideDummy, provideDummyBuilder;
export 'src/mock.dart'
show
Mock,
SmartFake,
named, // ignore: deprecated_member_use_from_same_package
Answering,
Expectation,
FakeFunctionUsedError, // ignore: deprecated_member_use_from_same_package

// -- setting behaviour
when,
FakeUsedError,
ListOfVerificationResult,
MissingStubError,
Mock,
PostExpectation,
SmartFake,
Verification,
VerificationResult,
any,
anyNamed,

// -- verification
argThat,
captureAny,
captureAnyNamed,
captureThat,
Answering,
Expectation,
PostExpectation,
clearInteractions,
logInvocations,
// ignore: deprecated_member_use_from_same_package
named,
reset,

// -- verification
// -- misc
resetMockitoState,
throwOnMissingStub,
untilCalled,
verify,
verifyInOrder,
verifyNever,
verifyNoMoreInteractions,
verifyZeroInteractions,
VerificationResult,
Verification,
ListOfVerificationResult,

// -- misc
throwOnMissingStub,
clearInteractions,
reset,
resetMockitoState,
logInvocations,
untilCalled,
MissingStubError,
FakeUsedError,
FakeFunctionUsedError;
when;
1 change: 1 addition & 0 deletions pkgs/mockito/lib/src/builder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1689,6 +1689,7 @@ class _MockClassInfo {
.call([refer('parent'), refer('parentInvocation')]).code)));

final toStringMethod =
// ignore: deprecated_member_use
elementToFake.lookUpMethod('toString', elementToFake.library);
if (toStringMethod != null && toStringMethod.parameters.isNotEmpty) {
// If [elementToFake] includes an overriding `toString` implementation,
Expand Down

0 comments on commit ee75bd1

Please sign in to comment.