mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
By returning `nil` instead of an empty dictionary in the common case where no exception is encountered, we skip any dictionary-bridging work which can become expensive if making assertions in a tight loop.
27 lines
865 B
C++
27 lines
865 B
C++
//===--- XCTestOverlayShims.h -----------------------------------*- C++ -*-===//
|
|
//
|
|
// This source file is part of the Swift.org open source project
|
|
//
|
|
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
|
|
// Licensed under Apache License v2.0 with Runtime Library Exception
|
|
//
|
|
// See https://swift.org/LICENSE.txt for license information
|
|
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef SWIFT_STDLIB_SHIMS_XCTEST_OVERLAY_H
|
|
#define SWIFT_STDLIB_SHIMS_XCTEST_OVERLAY_H
|
|
|
|
@import Foundation;
|
|
|
|
@class XCTestCase;
|
|
|
|
XCTestCase * _Nonnull _XCTCurrentTestCase(void);
|
|
|
|
NSDictionary<NSString *, NSString *> * _Nullable
|
|
_XCTRunThrowableBlockBridge(void (^ _Nonnull NS_NOESCAPE block)());
|
|
|
|
#endif // SWIFT_STDLIB_SHIMS_XCTEST_OVERLAY_H
|
|
|