funcmike / rabbitmq-nio

A Swift implementation of AMQP 0.9.1 protocol: decoder + encoder and non-blocking client
Apache License 2.0
44 stars 8 forks source link

Quality: Test your decoder using `ByteToMessageDecoderVerifier` #5

Open fabianfett opened 1 year ago

fabianfett commented 1 year ago

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