Flutter iOS Embedder
FlutterTestUtils.mm File Reference

Go to the source code of this file.

Functions

FLUTTER_ASSERT_ARC BOOL FLTThrowsObjcException (dispatch_block_t block)
 Returns YES if the block throws an exception. More...
 

Function Documentation

◆ FLTThrowsObjcException()

FLUTTER_ASSERT_ARC BOOL FLTThrowsObjcException ( dispatch_block_t  block)

Returns YES if the block throws an exception.

Definition at line 11 of file FlutterTestUtils.mm.

11  {
12  @try {
13  block();
14  } @catch (...) {
15  return YES;
16  }
17  return NO;
18 }

Referenced by TEST().