opendnsmyip_license_test.go 627 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright (c) 2021 Gridfinity, LLC.
  2. // Copyright (c) 2012 The Go Authors.
  3. //
  4. // Use of this source code is governed by the BSD-style
  5. // license that can be found in the leaktestfe/LICENSE file.
  6. package opendnsmyip // import "go.gridfinity.dev/opendnsmyip"
  7. import (
  8. "fmt"
  9. "testing"
  10. u "go.gridfinity.dev/leaktestfe"
  11. licn "go4.org/legal"
  12. )
  13. func TestLicense(
  14. t *testing.T,
  15. ) {
  16. defer u.Leakplug(
  17. t,
  18. )
  19. licenses := licn.Licenses()
  20. if len(
  21. licenses,
  22. ) == 0 {
  23. t.Fatal(
  24. "\nopendnsmyip_license_test.TestLicense.Licenses FAILURE",
  25. )
  26. } else {
  27. t.Log(
  28. fmt.Sprintf(
  29. "\n%v\n",
  30. licenses,
  31. ),
  32. )
  33. }
  34. }