Skip to content

Commit ee4d4b2

Browse files
committed
format, update test expectations
1 parent 98d58d5 commit ee4d4b2

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

dio/test/dio_event_processor_test.dart

+12-12
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ void main() {
6767
throwable: throwable,
6868
exceptions: [
6969
fixture.sentryError(throwable),
70-
fixture.sentryError(dioError)
70+
fixture.sentryError(dioError),
7171
],
7272
);
7373
final processedEvent = sut.apply(event) as SentryEvent;
@@ -96,7 +96,7 @@ void main() {
9696
throwable: throwable,
9797
exceptions: [
9898
fixture.sentryError(throwable),
99-
fixture.sentryError(dioError)
99+
fixture.sentryError(dioError),
100100
],
101101
);
102102
final processedEvent = sut.apply(event) as SentryEvent;
@@ -125,7 +125,7 @@ void main() {
125125
throwable: throwable,
126126
exceptions: [
127127
fixture.sentryError(throwable),
128-
fixture.sentryError(dioError)
128+
fixture.sentryError(dioError),
129129
],
130130
);
131131
final processedEvent = sut.apply(event) as SentryEvent;
@@ -177,7 +177,7 @@ void main() {
177177
throwable: throwable,
178178
exceptions: [
179179
fixture.sentryError(throwable),
180-
fixture.sentryError(dioError)
180+
fixture.sentryError(dioError),
181181
],
182182
);
183183
final processedEvent = sut.apply(event) as SentryEvent;
@@ -207,7 +207,7 @@ void main() {
207207
data: 'foobar',
208208
headers: Headers.fromMap(<String, List<String>>{
209209
'foo': ['bar'],
210-
'set-cookie': ['foo=bar']
210+
'set-cookie': ['foo=bar'],
211211
}),
212212
requestOptions: request,
213213
isRedirect: true,
@@ -219,7 +219,7 @@ void main() {
219219
throwable: throwable,
220220
exceptions: [
221221
fixture.sentryError(throwable),
222-
fixture.sentryError(dioError)
222+
fixture.sentryError(dioError),
223223
],
224224
);
225225
final processedEvent = sut.apply(event) as SentryEvent;
@@ -248,7 +248,7 @@ void main() {
248248
response: Response<dynamic>(
249249
data: 'foobar',
250250
headers: Headers.fromMap(<String, List<String>>{
251-
'foo': ['bar']
251+
'foo': ['bar'],
252252
}),
253253
requestOptions: request,
254254
isRedirect: true,
@@ -260,7 +260,7 @@ void main() {
260260
throwable: throwable,
261261
exceptions: [
262262
fixture.sentryError(throwable),
263-
fixture.sentryError(dioError)
263+
fixture.sentryError(dioError),
264264
],
265265
);
266266
final processedEvent = sut.apply(event) as SentryEvent;
@@ -320,7 +320,7 @@ void main() {
320320
throwable: throwable,
321321
exceptions: [
322322
fixture.sentryError(throwable),
323-
fixture.sentryError(dioError)
323+
fixture.sentryError(dioError),
324324
],
325325
);
326326
final processedEvent = sut.apply(event) as SentryEvent;
@@ -338,7 +338,7 @@ void main() {
338338
final dataByType = {
339339
ResponseType.plain: ['plain'],
340340
ResponseType.bytes: [
341-
[1337]
341+
[1337],
342342
],
343343
ResponseType.json: [
344344
9001,
@@ -347,7 +347,7 @@ void main() {
347347
true,
348348
['list'],
349349
{'map-key': 'map-value'},
350-
]
350+
],
351351
};
352352

353353
for (final entry in dataByType.entries) {
@@ -375,7 +375,7 @@ void main() {
375375
throwable: throwable,
376376
exceptions: [
377377
fixture.sentryError(throwable),
378-
fixture.sentryError(dioError)
378+
fixture.sentryError(dioError),
379379
],
380380
);
381381
final processedEvent = sut.apply(event) as SentryEvent;

dio/test/failed_request_interceptor_test.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class Fixture {
113113

114114
FailedRequestInterceptor getSut({
115115
List<SentryStatusCode> failedRequestStatusCodes = const [
116-
SentryStatusCode.defaultRange()
116+
SentryStatusCode.defaultRange(),
117117
],
118118
List<String> failedRequestTargets = const ['.*'],
119119
}) {

dio/test/mocks.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final fakeEvent = SentryEvent(
4242
type: 'navigation',
4343
data: <String, dynamic>{'screen': 'MainActivity', 'state': 'created'},
4444
level: SentryLevel.info,
45-
)
45+
),
4646
],
4747
contexts: Contexts(
4848
operatingSystem: const SentryOperatingSystem(

flutter/lib/src/jvm/jvm_exception.dart

+1-1
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ class JvmException {
259259
final thisExceptionFrames = thisException
260260
.map((e) => JvmFrame.parse(e))
261261
.where(
262-
(e) => e.originalFrame.isNotEmpty && e.originalFrame.trim() != 'at' )
262+
(e) => e.originalFrame.isNotEmpty && e.originalFrame.trim() != 'at')
263263
.toList(growable: false);
264264

265265
final suppressedExceptions = supressed

flutter/test/jvm/jvm_exception_test.dart

+3-4
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ void main() {
4040
'Violation of unique constraint MY_ENTITY_UK_1: duplicate value(s) for column(s) MY_COLUMN in statement [...]');
4141
expect(thirdCause.thread, null);
4242
expect(thirdCause.type, 'java.sql.SQLException');
43-
expect(thirdCause.stackTrace.length, 6);
43+
expect(thirdCause.stackTrace.length, 5);
4444
expect(thirdCause.causes, null);
4545
expect(thirdCause.suppressed, null);
4646
});
@@ -87,8 +87,7 @@ void main() {
8787
});
8888

8989
test('parse drops frames with `at ` and empty original frame', () {
90-
final exception =
91-
JvmException.parse(platformExceptionWithEmptyLastStackFrame);
90+
final exception = JvmException.parse(platformExceptionWithEmptyStackFrames);
9291
expect(exception.stackTrace.length, 13);
9392
expect(exception.stackTrace.last.className,
9493
'com.android.internal.os.ZygoteInit');
@@ -206,7 +205,7 @@ java.lang.IllegalArgumentException: Unsupported value: '[Ljava.lang.StackTraceEl
206205
at com.android.internal.os.RuntimeInit\$MethodAndArgsCaller.run(RuntimeInit.java:556)
207206
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1037)''';
208207

209-
const platformExceptionWithEmptyLastStackFrame = '''
208+
const platformExceptionWithEmptyStackFrames = '''
210209
java.lang.RuntimeException: Catch this platform exception!
211210
at io.sentry.samples.flutter.MainActivity\$configureFlutterEngine\$1.onMethodCall(MainActivity.kt:40)
212211
at io.flutter.plugin.common.MethodChannel\$IncomingMethodCallHandler.onMessage(MethodChannel.java:258)

sqflite/test/mocks/mocks.dart

+2-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ ISentrySpan startTransactionShim(
3333
DatabaseExecutor,
3434
],
3535
customMocks: [
36-
MockSpec<Hub>(fallbackGenerators: {#startTransaction: startTransactionShim})
36+
MockSpec<Hub>(
37+
fallbackGenerators: {#startTransaction: startTransactionShim}),
3738
],
3839
)
3940
void main() {}

0 commit comments

Comments
 (0)