opendnsmyip_license_test.go 678 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // Copyright 2020 Jeffrey H. Johnson.
  2. // Copyright 2020 Gridfinity, LLC.
  3. // Copyright 2012 The Go Authors.
  4. // All rights reserved.
  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 // import "go.gridfinity.dev/opendnsmyip"
  8. import (
  9. "fmt"
  10. "testing"
  11. u "go.gridfinity.dev/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. }