Package plug replaces functions, defined in the other packages, on testing. The idea underlying this library was heavy inspired from tenntenn/testtime.
See examples.
go test -overlay <(go run github.com/lufia/plug/cmd/plug@latest)
Then add below to .gitignore
plug
- cyclic import: runtime, reflect, etc.
- go:linkname functions: time.Sleep, etc.