swift-nio-extras/Tests/NIOExtrasTests/DebugInboundEventsHandlerTest+XCTest.swift
JovanMilenkovic f137a8c931 Add channel handlers to debug inbound and outbound events (#22)
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.
2019-01-21 21:10:52 +00:00

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),
]
}
}