LeftOverState

LeftOverState represents any left-over inbound, outbound, and pending outbound events that hit the NIOAsyncTestingChannel and were not consumed when finish was called on the NIOAsyncTestingChannel.

AsyncTestingChannel.swift:94
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
enum LeftOverState

NIOAsyncTestingChannel is most useful in testing and usually in unit tests, you want to consume all inbound and outbound data to verify they are what you expect. Therefore, when you finish a NIOAsyncTestingChannel it will return if it’s either clean (no left overs) or that it has leftOvers(inbound:outbound:pendingOutbound:).