mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-21 13:02:02 +08:00
Motivation: Users may want to log all of inbound and/or outbound events Modifications: Add DebugInboundEventsHandler and DebugOutboundEventsHandler Result: Users can plug additional handlers into their pipeline for default printing of events or getting a hook with relevant information for their own logging mechanism.
41 lines
1.3 KiB
Swift
41 lines
1.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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// DebugOutboundEventsHandlerTest+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 DebugOutboundEventsHandlerTest {
|
|
|
|
static var allTests : [(String, (DebugOutboundEventsHandlerTest) -> () throws -> Void)] {
|
|
return [
|
|
("testRegister", testRegister),
|
|
("testBind", testBind),
|
|
("testConnect", testConnect),
|
|
("testWrite", testWrite),
|
|
("testFlush", testFlush),
|
|
("testRead", testRead),
|
|
("testClose", testClose),
|
|
("testTriggerUserOutboundEvent", testTriggerUserOutboundEvent),
|
|
]
|
|
}
|
|
}
|
|
|