leaktestfe_enable_test.go 513 B

1234567891011121314151617181920212223242526272829
  1. // Copyright © 2021 Jeffrey H. Johnson <trnsz@pobox.com>.
  2. // Copyright © 2021 Gridfinity, LLC.
  3. // Copyright © 2020 The Go Authors.
  4. //
  5. // All rights reserved.
  6. //
  7. // Use of this source code is governed by the BSD-style
  8. // license that can be found in the LICENSE file.
  9. //go:build leaktest || !purego
  10. // +build leaktest !purego
  11. package leaktestfe_test
  12. import (
  13. "testing"
  14. ltfe "github.com/johnsonjh/leaktestfe"
  15. )
  16. // TestLeakPlugOn -> Enable
  17. func TestLeakPlugOn(
  18. t *testing.T,
  19. ) {
  20. ltfe.Leakplug(
  21. t,
  22. )
  23. }