Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 695 Bytes

File metadata and controls

29 lines (19 loc) · 695 Bytes

plug

Package plug replaces functions, defined in the other packages, on testing. The idea underlying this library was heavy inspired from tenntenn/testtime.

GoDev

Usage

See examples.

go test -overlay <(go run github.com/lufia/plug/cmd/plug@latest)

Then add below to .gitignore

plug

Limitations

  • cyclic import: runtime, reflect, etc.
  • go:linkname functions: time.Sleep, etc.