leaktestfe_enable.go 480 B

12345678910111213141516171819202122232425262728293031
  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
  10. // +build leaktest
  11. package leaktestfe
  12. import (
  13. "testing"
  14. ltfe "go.uber.org/goleak"
  15. )
  16. func Leakplug(
  17. t *testing.T,
  18. ) {
  19. t.Log(
  20. "leaktestfe: enabled",
  21. )
  22. ltfe.VerifyNone(
  23. t,
  24. )
  25. }