pub extern "C-unwind" fn XCTExpectFailureInBlock(
failure_reason: Option<&NSString>,
failing_block: &DynBlock<dyn Fn()>,
)Available on crate feature
block2 only.Expand description
Like XCTExpectFailure, but limits the scope in which issues are matched.
Parameter failingBlock: The scope of code in which the failure is expected. Note that this will only
match against failures in that scope on the same thread; failures in dispatch callouts or other code
running on a different thread will not be matched.