gonuma_license_test.go 541 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright © 2021 Jeffrey H. Johnson <trnsz@pobox.com>
  2. // Copyright © 2021 Gridfinity, LLC.
  3. // Copyright © 2012 The Go Authors.
  4. //
  5. // All rights reserved.
  6. package gonuma
  7. import (
  8. "fmt"
  9. "testing"
  10. u "github.com/johnsonjh/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. "\ngonuma_license_test.TestLicense.Licenses FAILURE",
  25. )
  26. } else {
  27. t.Log(
  28. fmt.Sprintf(
  29. "\n%v\n",
  30. licenses,
  31. ),
  32. )
  33. }
  34. }