File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -275,7 +275,7 @@ mixin SentryFlutter {
275
275
276
276
/// Use `nativeCrash()` to crash the native implementation and test/debug the crash reporting for native code.
277
277
/// This should not be used in production code.
278
- /// Only for Android and iOS
278
+ /// Only for Android, iOS and macOS
279
279
static Future <void > nativeCrash () {
280
280
if (_native == null ) {
281
281
_logNativeIntegrationNotAvailable ("nativeCrash" );
Original file line number Diff line number Diff line change @@ -302,6 +302,15 @@ void main() {
302
302
303
303
verify (channel.invokeMethod ('resumeAppHangTracking' ));
304
304
});
305
+
306
+ test ('nativeCrash' , () async {
307
+ when (channel.invokeMethod ('nativeCrash' ))
308
+ .thenAnswer ((_) => Future .value ());
309
+
310
+ await sut.nativeCrash ();
311
+
312
+ verify (channel.invokeMethod ('nativeCrash' ));
313
+ });
305
314
});
306
315
}
307
316
}
You can’t perform that action at this time.
0 commit comments