mirror of
https://github.com/apple/swift-nio
synced 2026-11-29 05:24:21 +00:00
Motivation: Explain here the context, and why you're making that change. What is the problem you're trying to solve. Modifications: Describe the modifications you've done. Result: After your change, what will change.
55 lines
2.3 KiB
Swift
55 lines
2.3 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// CodecTest+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 ByteToMessageDecoderTest {
|
|
|
|
static var allTests : [(String, (ByteToMessageDecoderTest) -> () throws -> Void)] {
|
|
return [
|
|
("testDecoder", testDecoder),
|
|
("testDecoderPropagatesChannelInactive", testDecoderPropagatesChannelInactive),
|
|
("testDecoderIsNotQuadratic", testDecoderIsNotQuadratic),
|
|
("testMemoryIsReclaimedIfMostIsConsumed", testMemoryIsReclaimedIfMostIsConsumed),
|
|
("testMemoryIsReclaimedIfLotsIsAvailable", testMemoryIsReclaimedIfLotsIsAvailable),
|
|
("testDecoderReentranceChannelRead", testDecoderReentranceChannelRead),
|
|
("testTrivialDecoderDoesSensibleStuffWhenCloseInRead", testTrivialDecoderDoesSensibleStuffWhenCloseInRead),
|
|
("testLeftOversMakeDecodeLastCalled", testLeftOversMakeDecodeLastCalled),
|
|
("testRemovingHandlerMakesLeftoversAppearInDecodeLast", testRemovingHandlerMakesLeftoversAppearInDecodeLast),
|
|
("testStructsWorkAsByteToMessageDecoders", testStructsWorkAsByteToMessageDecoders),
|
|
("testReentrantChannelReadWhileWholeBufferIsBeingProcessed", testReentrantChannelReadWhileWholeBufferIsBeingProcessed),
|
|
("testReentrantChannelCloseInChannelRead", testReentrantChannelCloseInChannelRead),
|
|
]
|
|
}
|
|
}
|
|
|
|
extension MessageToByteEncoderTest {
|
|
|
|
static var allTests : [(String, (MessageToByteEncoderTest) -> () throws -> Void)] {
|
|
return [
|
|
("testEncoderOverrideAllocateOutBuffer", testEncoderOverrideAllocateOutBuffer),
|
|
("testEncoder", testEncoder),
|
|
]
|
|
}
|
|
}
|
|
|