Releases: tvanriper/go-mock-io
Releases · tvanriper/go-mock-io
v0.3.2
Adding a little thread safety.
v0.3.1
Correcting a typo in go.yml to ensure it performs tests correctly.
v0.3.0
Providing a 'Send' function to write directly to the mocked device as if an event happened on the device.
v0.2.0
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
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
Provide a delay after write before a response is returned.
Delay response
Wanted a way to delay the response on a match.
v0.1.1
First release.
Provides the MockIO ReadWriteCloser, and two concrete Expect types: ExpectBytes for exact matches, and ExpectFunc to match a function against incoming data.