|
| 1 | +// Mocks generated by Mockito 5.0.0-nullsafety.7 from annotations |
| 2 | +// in sentry_flutter/test/mocks.dart. |
| 3 | +// Do not manually edit this file. |
| 4 | + |
| 5 | +import 'dart:async' as _i4; |
| 6 | + |
| 7 | +import 'package:mockito/mockito.dart' as _i1; |
| 8 | +import 'package:sentry/src/hub.dart' as _i3; |
| 9 | +import 'package:sentry/src/protocol/breadcrumb.dart' as _i7; |
| 10 | +import 'package:sentry/src/protocol/sentry_event.dart' as _i5; |
| 11 | +import 'package:sentry/src/protocol/sentry_id.dart' as _i2; |
| 12 | +import 'package:sentry/src/protocol/sentry_level.dart' as _i6; |
| 13 | +import 'package:sentry/src/sentry_client.dart' as _i8; |
| 14 | +import 'package:sentry/src/transport/transport.dart' as _i9; |
| 15 | + |
| 16 | +// ignore_for_file: comment_references |
| 17 | +// ignore_for_file: unnecessary_parenthesis |
| 18 | + |
| 19 | +class _FakeSentryId extends _i1.Fake implements _i2.SentryId {} |
| 20 | + |
| 21 | +class _FakeHub extends _i1.Fake implements _i3.Hub {} |
| 22 | + |
| 23 | +/// A class which mocks [Hub]. |
| 24 | +/// |
| 25 | +/// See the documentation for Mockito's code generation for more information. |
| 26 | +class MockHub extends _i1.Mock implements _i3.Hub { |
| 27 | + MockHub() { |
| 28 | + _i1.throwOnMissingStub(this); |
| 29 | + } |
| 30 | + |
| 31 | + @override |
| 32 | + bool get isEnabled => |
| 33 | + (super.noSuchMethod(Invocation.getter(#isEnabled), returnValue: false) |
| 34 | + as bool); |
| 35 | + @override |
| 36 | + _i2.SentryId get lastEventId => |
| 37 | + (super.noSuchMethod(Invocation.getter(#lastEventId), |
| 38 | + returnValue: _FakeSentryId()) as _i2.SentryId); |
| 39 | + @override |
| 40 | + _i4.Future<_i2.SentryId> captureEvent(_i5.SentryEvent? event, |
| 41 | + {dynamic stackTrace, dynamic hint}) => |
| 42 | + (super.noSuchMethod( |
| 43 | + Invocation.method( |
| 44 | + #captureEvent, [event], {#stackTrace: stackTrace, #hint: hint}), |
| 45 | + returnValue: |
| 46 | + Future.value(_FakeSentryId())) as _i4.Future<_i2.SentryId>); |
| 47 | + @override |
| 48 | + _i4.Future<_i2.SentryId> captureException(dynamic throwable, |
| 49 | + {dynamic stackTrace, dynamic hint}) => |
| 50 | + (super.noSuchMethod( |
| 51 | + Invocation.method(#captureException, [throwable], |
| 52 | + {#stackTrace: stackTrace, #hint: hint}), |
| 53 | + returnValue: Future.value(_FakeSentryId())) |
| 54 | + as _i4.Future<_i2.SentryId>); |
| 55 | + @override |
| 56 | + _i4.Future<_i2.SentryId> captureMessage(String? message, |
| 57 | + {_i6.SentryLevel? level, |
| 58 | + String? template, |
| 59 | + List<dynamic>? params, |
| 60 | + dynamic hint}) => |
| 61 | + (super.noSuchMethod( |
| 62 | + Invocation.method(#captureMessage, [ |
| 63 | + message |
| 64 | + ], { |
| 65 | + #level: level, |
| 66 | + #template: template, |
| 67 | + #params: params, |
| 68 | + #hint: hint |
| 69 | + }), |
| 70 | + returnValue: Future.value(_FakeSentryId())) |
| 71 | + as _i4.Future<_i2.SentryId>); |
| 72 | + @override |
| 73 | + void addBreadcrumb(_i7.Breadcrumb? crumb, {dynamic hint}) => super |
| 74 | + .noSuchMethod(Invocation.method(#addBreadcrumb, [crumb], {#hint: hint}), |
| 75 | + returnValueForMissingStub: null); |
| 76 | + @override |
| 77 | + void bindClient(_i8.SentryClient? client) => |
| 78 | + super.noSuchMethod(Invocation.method(#bindClient, [client]), |
| 79 | + returnValueForMissingStub: null); |
| 80 | + @override |
| 81 | + _i3.Hub clone() => (super.noSuchMethod(Invocation.method(#clone, []), |
| 82 | + returnValue: _FakeHub()) as _i3.Hub); |
| 83 | + @override |
| 84 | + void configureScope(_i3.ScopeCallback? callback) => |
| 85 | + super.noSuchMethod(Invocation.method(#configureScope, [callback]), |
| 86 | + returnValueForMissingStub: null); |
| 87 | +} |
| 88 | + |
| 89 | +/// A class which mocks [Transport]. |
| 90 | +/// |
| 91 | +/// See the documentation for Mockito's code generation for more information. |
| 92 | +class MockTransport extends _i1.Mock implements _i9.Transport { |
| 93 | + MockTransport() { |
| 94 | + _i1.throwOnMissingStub(this); |
| 95 | + } |
| 96 | + |
| 97 | + @override |
| 98 | + _i4.Future<_i2.SentryId> send(_i5.SentryEvent? event) => (super.noSuchMethod( |
| 99 | + Invocation.method(#send, [event]), |
| 100 | + returnValue: Future.value(_FakeSentryId())) as _i4.Future<_i2.SentryId>); |
| 101 | +} |
0 commit comments