pktd_test_license_test.go 699 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. //
  7. // Use of this source code is governed by the BSD-style
  8. // license that can be found in the LICENSE file.
  9. package main_test
  10. import (
  11. "fmt"
  12. "testing"
  13. u "github.com/pkt-cash/pktd/blockchain/packetcrypt/cryptocycle/testutil"
  14. licn "go4.org/legal"
  15. )
  16. func TestLicense(
  17. t *testing.T,
  18. ) {
  19. defer u.LeakVerifyNone(
  20. t,
  21. )
  22. licenses := licn.Licenses()
  23. if len(
  24. licenses,
  25. ) == 0 {
  26. t.Fatal(
  27. "\npktd_test_license_test.TestLicense.Licenses FAILURE",
  28. )
  29. } else {
  30. t.Log(
  31. fmt.Sprintf(
  32. "\n%v\n",
  33. licenses,
  34. ),
  35. )
  36. }
  37. }