mirror of
https://github.com/apple/swift-collections
synced 2026-11-24 04:27:53 +00:00
In the benchmark target, complain loudly if consistency checks are enabled.
27 lines
773 B
Swift
27 lines
773 B
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the Swift Collections open source project
|
|
//
|
|
// Copyright (c) 2022 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
import _CollectionsUtilities
|
|
|
|
extension PersistentDictionary {
|
|
public static var _isConsistencyCheckingEnabled: Bool {
|
|
_isCollectionsInternalCheckingEnabled
|
|
}
|
|
|
|
public func _dump(iterationOrder: Bool = false) {
|
|
_root.dump(iterationOrder: iterationOrder)
|
|
}
|
|
|
|
public static var _maxDepth: Int {
|
|
_Level.limit
|
|
}
|
|
}
|