mirror of
https://github.com/apple/swift-nio-extras.git
synced 2025-05-15 01:18:58 +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.
42 lines
1.3 KiB
Swift
42 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// DebugInboundEventsHandlerTest+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 DebugInboundEventsHandlerTest {
|
|
|
|
static var allTests : [(String, (DebugInboundEventsHandlerTest) -> () throws -> Void)] {
|
|
return [
|
|
("testRegistered", testRegistered),
|
|
("testUnregistered", testUnregistered),
|
|
("testActive", testActive),
|
|
("testInactive", testInactive),
|
|
("testReadComplete", testReadComplete),
|
|
("testWritabilityChanged", testWritabilityChanged),
|
|
("testUserInboundEvent", testUserInboundEvent),
|
|
("testErrorCaught", testErrorCaught),
|
|
("testRead", testRead),
|
|
]
|
|
}
|
|
}
|
|
|