//===----------------------------------------------------------------------===// // // This source file is part of the Swift Logging API open source project // // Copyright (c) 2026 Apple Inc. and the Swift Logging API project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIBUTORS.txt for the list of Swift Logging API project authors // // SPDX-License-Identifier: Apache-2.0 // //===----------------------------------------------------------------------===// import InMemoryLogging import Logging import Testing struct MultiplexProviderRegressionTests { @Test(arguments: [1, 2]) func constructorProviderReachesEverySink(handlerCount: Int) { let sinks = (0.. Logger.Metadata.Value? { get { self.metadata[key] } set { self.metadata[key] = newValue } } func log(event: LogEvent) { self.sink.log(event: event) } }