rabbitmq-nio icon indicating copy to clipboard operation
rabbitmq-nio copied to clipboard

Quality: Test your decoder using `ByteToMessageDecoderVerifier`

Open fabianfett opened this issue 2 years ago • 0 comments

I highly recommend testing your message decoder using the ByteToMessageDecoderVerifier. It will test your decoder implementation in multiple ways and ensure that you are doing the right thing. This will improve trust in your library significantly.

Example code: https://github.com/vapor/postgres-nio/blob/c7edb9b71e5055a0c5d918b91a44a88498b997c4/Tests/PostgresNIOTests/New/Messages/RowDescriptionTests.swift

fabianfett avatar Dec 01 '22 14:12 fabianfett