As described in the README, a Decoder should never throw an exception. All errors should be reported via a Left message. We can test this by randomly exchanging a few (just one?) bytes of a correctly encoded input, truncating it, or decoding with the wrong type. It may however be very well the case that a decode nevertheless succeeds.
As described in the README, a
Decodershould never throw an exception. All errors should be reported via aLeftmessage. We can test this by randomly exchanging a few (just one?) bytes of a correctly encoded input, truncating it, or decoding with the wrong type. It may however be very well the case that a decode nevertheless succeeds.