Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
buenaflor committed Oct 9, 2024
1 parent eb2e527 commit 3b66314
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions flutter/test/sentry_native_channel_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,21 @@ void main() {
expect(actual?.isColdStart, true);
});

test('invalid fetchNativeAppStart returns null', () async {
when(channel.invokeMethod('fetchNativeAppStart'))
.thenAnswer((_) async => {
'pluginRegistrationTime': 'invalid',
'appStartTime': 'invalid',
'isColdStart': 'invalid',
// ignore: inference_failure_on_collection_literal
'nativeSpanTimes': 'invalid',
});

final actual = await sut.fetchNativeAppStart();

expect(actual, isNull);
});

test('beginNativeFrames', () async {
when(channel.invokeMethod('beginNativeFrames'))
.thenAnswer((realInvocation) async {});
Expand Down

0 comments on commit 3b66314

Please sign in to comment.