mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-23 05:49:41 +08:00
* Adds a line-based frame decoder that can split received buffers on line endings. Motivation: As per https://github.com/apple/swift-nio/issues/473 Modifications: Added a new decoder (LineBasedFrameDecoder) that splits incoming buffers on line end characters. Result: Received buffers will be split on line end character(s) ('\n' or '\r\n'), with these characters stripped in the resulting buffers.
34 lines
952 B
Swift
34 lines
952 B
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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// LinuxMain.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.
|
|
///
|
|
|
|
#if os(Linux) || os(FreeBSD)
|
|
@testable import NIOExtrasTests
|
|
|
|
XCTMain([
|
|
testCase(FixedLengthFrameDecoderTest.allTests),
|
|
testCase(LineBasedFrameDecoderTest.allTests),
|
|
testCase(QuiescingHelperTest.allTests),
|
|
])
|
|
#endif
|