Files
swift-nio-http2/Tests/NIOHTTP2Tests/StreamChannelFlowControllerTests+XCTest.swift
T
George Barnett 48082eecc1 Update the test generation script to allow for deprecated tests (#223)
Motivation:

To test deprecated functionality without a bunch of warnings, tests must
be marked as deprecated. This also needs to be bubbled up to anywhere
calling that test, such as in the generated linux test manifests.

Our script to generate the manifests currently doesn't support this and
as part of #214 we'll need to deprecate a few things while keeping their
tests.

Modifications:

- Pull in the latest version of the `generate_linux_tests.rb` script
  from SwiftNIO.
- Re-run the script, since it includes some formatting changes too.

Result:

- When we deprecate functionality, we can deprecate the tests without
  the generate manifests emitting warnings.
2020-07-30 16:13:12 +01:00

37 lines
1.4 KiB
Swift

//===----------------------------------------------------------------------===//
//
// This source file is part of the SwiftNIO open source project
//
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
//
// SPDX-License-Identifier: Apache-2.0
//
//===----------------------------------------------------------------------===//
//
// StreamChannelFlowControllerTests+XCTest.swift
//
import XCTest
///
/// NOTE: This file was generated by generate_linux_tests.rb
///
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
///
extension StreamChannelFlowControllerTests {
@available(*, deprecated, message: "not actually deprecated. Just deprecated to allow deprecated tests (which test deprecated functionality) without warnings")
static var allTests : [(String, (StreamChannelFlowControllerTests) -> () throws -> Void)] {
return [
("testChannelWritabilityChangesFromFlowControl", testChannelWritabilityChangesFromFlowControl),
("testChannelWritabilityChangesFromParent", testChannelWritabilityChangesFromParent),
("testChannelWritabilityConsidersBothFlowControlAndParent", testChannelWritabilityConsidersBothFlowControlAndParent),
]
}
}