mirror of https://github.com/AMT-Cheif/drift.git
Update mockito
This commit is contained in:
parent
72476628ad
commit
3980fd0be5
|
@ -32,7 +32,7 @@ dev_dependencies:
|
|||
uuid: ^4.0.0
|
||||
build_runner: ^2.0.0
|
||||
test: ^1.17.0
|
||||
mockito: ^5.0.7
|
||||
mockito: ^5.4.3
|
||||
rxdart: ^0.27.0
|
||||
shelf: ^1.3.0
|
||||
stack_trace: ^1.10.0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// Mocks generated by Mockito 5.4.2 from annotations
|
||||
// Mocks generated by Mockito 5.4.3 from annotations
|
||||
// in drift/test/test_utils/test_utils.dart.
|
||||
// Do not manually edit this file.
|
||||
|
||||
|
@ -15,6 +15,8 @@ import 'package:mockito/mockito.dart' as _i1;
|
|||
// ignore_for_file: avoid_redundant_argument_values
|
||||
// ignore_for_file: avoid_setters_without_getters
|
||||
// ignore_for_file: comment_references
|
||||
// ignore_for_file: deprecated_member_use
|
||||
// ignore_for_file: deprecated_member_use_from_same_package
|
||||
// ignore_for_file: implementation_imports
|
||||
// ignore_for_file: invalid_use_of_visible_for_testing_member
|
||||
// ignore_for_file: prefer_const_constructors
|
||||
|
@ -64,6 +66,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
returnValue: false,
|
||||
returnValueForMissingStub: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
set isInTransaction(bool? _isInTransaction) => super.noSuchMethod(
|
||||
Invocation.setter(
|
||||
|
@ -72,6 +75,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i2.DbVersionDelegate get versionDelegate => (super.noSuchMethod(
|
||||
Invocation.getter(#versionDelegate),
|
||||
|
@ -84,6 +88,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
Invocation.getter(#versionDelegate),
|
||||
),
|
||||
) as _i2.DbVersionDelegate);
|
||||
|
||||
@override
|
||||
_i2.TransactionDelegate get transactionDelegate => (super.noSuchMethod(
|
||||
Invocation.getter(#transactionDelegate),
|
||||
|
@ -96,12 +101,14 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
Invocation.getter(#transactionDelegate),
|
||||
),
|
||||
) as _i2.TransactionDelegate);
|
||||
|
||||
@override
|
||||
_i4.FutureOr<bool> get isOpen => (super.noSuchMethod(
|
||||
Invocation.getter(#isOpen),
|
||||
returnValue: _i4.Future<bool>.value(false),
|
||||
returnValueForMissingStub: _i4.Future<bool>.value(false),
|
||||
) as _i4.FutureOr<bool>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> open(_i5.QueryExecutorUser? db) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -111,6 +118,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> close() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -120,6 +128,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
void notifyDatabaseOpened(_i5.OpeningDetails? details) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -128,6 +137,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i4.Future<_i3.QueryResult> runSelect(
|
||||
String? statement,
|
||||
|
@ -163,6 +173,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
),
|
||||
)),
|
||||
) as _i4.Future<_i3.QueryResult>);
|
||||
|
||||
@override
|
||||
_i4.Future<int> runUpdate(
|
||||
String? statement,
|
||||
|
@ -179,6 +190,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
returnValue: _i4.Future<int>.value(0),
|
||||
returnValueForMissingStub: _i4.Future<int>.value(0),
|
||||
) as _i4.Future<int>);
|
||||
|
||||
@override
|
||||
_i4.Future<int> runInsert(
|
||||
String? statement,
|
||||
|
@ -195,6 +207,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
returnValue: _i4.Future<int>.value(0),
|
||||
returnValueForMissingStub: _i4.Future<int>.value(0),
|
||||
) as _i4.Future<int>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> runCustom(
|
||||
String? statement,
|
||||
|
@ -211,6 +224,7 @@ class MockDatabaseDelegate extends _i1.Mock implements _i2.DatabaseDelegate {
|
|||
returnValue: _i4.Future<void>.value(),
|
||||
returnValueForMissingStub: _i4.Future<void>.value(),
|
||||
) as _i4.Future<void>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> runBatched(_i5.BatchedStatements? statements) =>
|
||||
(super.noSuchMethod(
|
||||
|
@ -234,6 +248,7 @@ class MockDynamicVersionDelegate extends _i1.Mock
|
|||
returnValue: _i4.Future<int>.value(0),
|
||||
returnValueForMissingStub: _i4.Future<int>.value(0),
|
||||
) as _i4.Future<int>);
|
||||
|
||||
@override
|
||||
_i4.Future<void> setSchemaVersion(int? version) => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -256,6 +271,7 @@ class MockSupportedTransactionDelegate extends _i1.Mock
|
|||
returnValue: false,
|
||||
returnValueForMissingStub: false,
|
||||
) as bool);
|
||||
|
||||
@override
|
||||
_i4.FutureOr<void> startTransaction(
|
||||
_i4.Future<dynamic> Function(_i2.QueryDelegate)? run) =>
|
||||
|
@ -284,6 +300,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
|
|||
returnValueForMissingStub:
|
||||
_i4.Stream<List<Map<String, Object?>>>.empty(),
|
||||
) as _i4.Stream<List<Map<String, Object?>>>);
|
||||
|
||||
@override
|
||||
_i4.Stream<Set<_i5.TableUpdate>> updatesForSync(
|
||||
_i5.TableUpdateQuery? query) =>
|
||||
|
@ -295,6 +312,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
|
|||
returnValue: _i4.Stream<Set<_i5.TableUpdate>>.empty(),
|
||||
returnValueForMissingStub: _i4.Stream<Set<_i5.TableUpdate>>.empty(),
|
||||
) as _i4.Stream<Set<_i5.TableUpdate>>);
|
||||
|
||||
@override
|
||||
void handleTableUpdates(Set<_i5.TableUpdate>? updates) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -303,6 +321,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void markAsClosed(
|
||||
_i6.QueryStream? stream,
|
||||
|
@ -318,6 +337,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
void markAsOpened(_i6.QueryStream? stream) => super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
@ -326,6 +346,7 @@ class MockStreamQueries extends _i1.Mock implements _i6.StreamQueryStore {
|
|||
),
|
||||
returnValueForMissingStub: null,
|
||||
);
|
||||
|
||||
@override
|
||||
_i4.Future<void> close() => (super.noSuchMethod(
|
||||
Invocation.method(
|
||||
|
|
Loading…
Reference in New Issue