Skip to content
/ plug Public

Package plug replaces functions, defined in the other packages, on testing.

License

Notifications You must be signed in to change notification settings

lufia/plug

Repository files navigation

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.

About

Package plug replaces functions, defined in the other packages, on testing.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages