Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ueman committed Jan 21, 2022
1 parent 33d1ba5 commit a92aef7
Showing 1 changed file with 45 additions and 4 deletions.
49 changes: 45 additions & 4 deletions feedback_sentry/test/feedback_sentry_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,22 @@ class MockHub implements Hub {
void bindClient(SentryClient client) {}

@override
Future<SentryId> captureEvent(SentryEvent event,
{stackTrace, hint, ScopeCallback? withScope}) {
Future<SentryId> captureEvent(
SentryEvent event, {
stackTrace,
hint,
ScopeCallback? withScope,
}) {
throw UnimplementedError();
}

@override
Future<SentryId> captureException(throwable,
{stackTrace, hint, ScopeCallback? withScope}) {
Future<SentryId> captureException(
throwable, {
stackTrace,
hint,
ScopeCallback? withScope,
}) {
throw UnimplementedError();
}

Expand All @@ -97,4 +105,37 @@ class MockHub implements Hub {

@override
SentryId get lastEventId => throw UnimplementedError();

@override
Future<SentryId> captureTransaction(SentryTransaction transaction) {
throw UnimplementedError();
}

@override
ISentrySpan? getSpan() {
throw UnimplementedError();
}

@override
void setSpanContext(throwable, ISentrySpan span, String transaction) {}

@override
ISentrySpan startTransaction(
String name,
String operation, {
String? description,
bool? bindToScope,
Map<String, dynamic>? customSamplingContext,
}) {
throw UnimplementedError();
}

@override
ISentrySpan startTransactionWithContext(
SentryTransactionContext transactionContext, {
Map<String, dynamic>? customSamplingContext,
bool? bindToScope,
}) {
throw UnimplementedError();
}
}

0 comments on commit a92aef7

Please sign in to comment.