Skip to content

tvanriper/go-mock-io

Repository files navigation

go-mock-io

GoDoc Go Test Result Coverage Status

Test your socket i/o in pure golang

I needed a library to help me test working with a serial connection. Unfortunately, I didn't see one readily available in Golang that served my needs. So, I figured, I'll have to make one.

Basic concept

Create a mock io.ReadWriteCloser, and give it certain expectations. When someone writing to the mock stream meets any of those expectations, the stream responds with that expectation's response.

Installation

go get github.com/tvanriper/go-mock-io

About

Test your socket i/o in pure golang

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages