Skip to content

Releases: tvanriper/go-mock-io

v0.3.2

06 Aug 10:08
Compare
Choose a tag to compare

Adding a little thread safety.

v0.3.1

06 Aug 09:57
Compare
Choose a tag to compare

Correcting a typo in go.yml to ensure it performs tests correctly.

v0.3.0

06 Aug 09:52
Compare
Choose a tag to compare

Providing a 'Send' function to write directly to the mocked device as if an event happened on the device.

v0.2.0

02 Aug 10:50
Compare
Choose a tag to compare

Adding a 'wait' argument to the NewExpectXXX functions to make it simpler to add an amount of time to wait before reading.

The change of interface for these functions prompted the minor version change.

v0.1.4

02 Aug 09:29
Compare
Choose a tag to compare

Fixes bugs introduced since v0.1.2.

Added unit test for duration support.

Delays when the read happens based on a time.Duration to help mimic actual serial port delays. This can help track down problems related to race conditions or timing concerns.

v0.1.3

01 Aug 19:01
Compare
Choose a tag to compare

Provide a delay after write before a response is returned.

Delay response

01 Aug 18:43
Compare
Choose a tag to compare

Wanted a way to delay the response on a match.

v0.1.1

09 Jun 14:09
Compare
Choose a tag to compare

First release.

Provides the MockIO ReadWriteCloser, and two concrete Expect types: ExpectBytes for exact matches, and ExpectFunc to match a function against incoming data.