swift-nio/Sources/NIOEmbedded
Franz Busch 602989b003
Implement `remoteAddress0` and `localAddress0` on `EmbeddedChannel` (#2345)
# Motivation
`EmbeddedChannel` is often used in testing and currently any code under testing that uses `context.localAddress` cannot be mocked, since `EmbeddedChannelCore` is always throwing.

# Modification
Use the same values for `localAddress` in `localAddress0()`. Same for `remoteAddress`

# Result
We can now properly test code that needs local/remote addresses with `EmbeddedChannel`
2023-01-12 02:55:18 -08:00
..
AsyncTestingChannel.swift Add `NIOAsyncTestingChannel.waitForOut/InboundWrite()` (#2307) 2022-11-08 11:45:24 +00:00
AsyncTestingEventLoop.swift Remove `#if compiler(>=5.5)` (#2292) 2022-10-13 07:17:46 -07:00
Embedded.swift Implement `remoteAddress0` and `localAddress0` on `EmbeddedChannel` (#2345) 2023-01-12 02:55:18 -08:00