Files
flutter/test/powersync/connector_test.mocks.dart

113 lines
3.7 KiB
Dart

// Mocks generated by Mockito from annotations
// in wger/test/powersync/connector_test.dart.
// Do not manually edit this file.
// ignore_for_file: no_leading_underscores_for_library_prefixes
import 'dart:async' as _i5;
import 'package:http/http.dart' as _i2;
import 'package:mockito/mockito.dart' as _i1;
import 'package:mockito/src/dummies.dart' as _i4;
import 'package:wger/powersync/api_client.dart' as _i3;
// ignore_for_file: type=lint
// 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: experimental_member_use
// ignore_for_file: implementation_imports
// ignore_for_file: invalid_use_of_visible_for_testing_member
// ignore_for_file: must_be_immutable
// ignore_for_file: prefer_const_constructors
// ignore_for_file: unnecessary_parenthesis
// ignore_for_file: camel_case_types
// ignore_for_file: subtype_of_sealed_class
// ignore_for_file: invalid_use_of_internal_member
class _FakeUri_0 extends _i1.SmartFake implements Uri {
_FakeUri_0(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
}
class _FakeResponse_1 extends _i1.SmartFake implements _i2.Response {
_FakeResponse_1(Object parent, Invocation parentInvocation) : super(parent, parentInvocation);
}
/// A class which mocks [ApiClient].
///
/// See the documentation for Mockito's code generation for more information.
class MockApiClient extends _i1.Mock implements _i3.ApiClient {
MockApiClient() {
_i1.throwOnMissingStub(this);
}
@override
Uri get uri =>
(super.noSuchMethod(
Invocation.getter(#uri),
returnValue: _FakeUri_0(this, Invocation.getter(#uri)),
)
as Uri);
@override
String get serverUrl =>
(super.noSuchMethod(
Invocation.getter(#serverUrl),
returnValue: _i4.dummyValue<String>(
this,
Invocation.getter(#serverUrl),
),
)
as String);
@override
Map<String, String> getHeaders() =>
(super.noSuchMethod(
Invocation.method(#getHeaders, []),
returnValue: <String, String>{},
)
as Map<String, String>);
@override
_i5.Future<Map<String, dynamic>> getPowersyncToken() =>
(super.noSuchMethod(
Invocation.method(#getPowersyncToken, []),
returnValue: _i5.Future<Map<String, dynamic>>.value(
<String, dynamic>{},
),
)
as _i5.Future<Map<String, dynamic>>);
@override
_i5.Future<_i2.Response> upsert(Map<String, dynamic>? record) =>
(super.noSuchMethod(
Invocation.method(#upsert, [record]),
returnValue: _i5.Future<_i2.Response>.value(
_FakeResponse_1(this, Invocation.method(#upsert, [record])),
),
)
as _i5.Future<_i2.Response>);
@override
_i5.Future<_i2.Response> update(Map<String, dynamic>? record) =>
(super.noSuchMethod(
Invocation.method(#update, [record]),
returnValue: _i5.Future<_i2.Response>.value(
_FakeResponse_1(this, Invocation.method(#update, [record])),
),
)
as _i5.Future<_i2.Response>);
@override
_i5.Future<_i2.Response> delete(Map<String, dynamic>? record) =>
(super.noSuchMethod(
Invocation.method(#delete, [record]),
returnValue: _i5.Future<_i2.Response>.value(
_FakeResponse_1(this, Invocation.method(#delete, [record])),
),
)
as _i5.Future<_i2.Response>);
}