Skip to content

Commit a92aef7

Browse files
committed
fix errors
1 parent 33d1ba5 commit a92aef7

File tree

1 file changed

+45
-4
lines changed

1 file changed

+45
-4
lines changed

feedback_sentry/test/feedback_sentry_test.dart

Lines changed: 45 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,22 @@ class MockHub implements Hub {
7171
void bindClient(SentryClient client) {}
7272

7373
@override
74-
Future<SentryId> captureEvent(SentryEvent event,
75-
{stackTrace, hint, ScopeCallback? withScope}) {
74+
Future<SentryId> captureEvent(
75+
SentryEvent event, {
76+
stackTrace,
77+
hint,
78+
ScopeCallback? withScope,
79+
}) {
7680
throw UnimplementedError();
7781
}
7882

7983
@override
80-
Future<SentryId> captureException(throwable,
81-
{stackTrace, hint, ScopeCallback? withScope}) {
84+
Future<SentryId> captureException(
85+
throwable, {
86+
stackTrace,
87+
hint,
88+
ScopeCallback? withScope,
89+
}) {
8290
throw UnimplementedError();
8391
}
8492

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

98106
@override
99107
SentryId get lastEventId => throw UnimplementedError();
108+
109+
@override
110+
Future<SentryId> captureTransaction(SentryTransaction transaction) {
111+
throw UnimplementedError();
112+
}
113+
114+
@override
115+
ISentrySpan? getSpan() {
116+
throw UnimplementedError();
117+
}
118+
119+
@override
120+
void setSpanContext(throwable, ISentrySpan span, String transaction) {}
121+
122+
@override
123+
ISentrySpan startTransaction(
124+
String name,
125+
String operation, {
126+
String? description,
127+
bool? bindToScope,
128+
Map<String, dynamic>? customSamplingContext,
129+
}) {
130+
throw UnimplementedError();
131+
}
132+
133+
@override
134+
ISentrySpan startTransactionWithContext(
135+
SentryTransactionContext transactionContext, {
136+
Map<String, dynamic>? customSamplingContext,
137+
bool? bindToScope,
138+
}) {
139+
throw UnimplementedError();
140+
}
100141
}

0 commit comments

Comments
 (0)