opendnsmyip_license_test.go 645 B

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