gpushover_license_test.go 891 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. // Package gpushover is a Go wrapper for Pushover's notification API.
  2. //
  3. // Copyright © 2021 Jeffrey H. Johnson. <trnsz@pobox.com>
  4. // Copyright © 2021 José Manuel Díez. <j.diezlopez@protonmail.ch>
  5. // Copyright © 2021 Gridfinity, LLC. <admin@gridfinity.com>
  6. // Copyright © 2014 Damian Gryski. <damian@gryski.com>
  7. // Copyright © 2014 Adam Lazzarato.
  8. //
  9. // All Rights reserved.
  10. //
  11. // All use of this code is governed by the MIT license.
  12. // The complete license is available in the LICENSE file.
  13. package gpushover_test
  14. import (
  15. "fmt"
  16. "testing"
  17. u "github.com/johnsonjh/leaktestfe"
  18. licn "go4.org/legal"
  19. )
  20. func TestLicense(
  21. t *testing.T,
  22. ) {
  23. defer u.Leakplug(
  24. t,
  25. )
  26. licenses := licn.Licenses()
  27. if len(
  28. licenses,
  29. ) == 0 {
  30. t.Fatal(
  31. "\ngpushover_license_test.TestLicense.licenses FAILURE",
  32. )
  33. } else {
  34. t.Log(
  35. fmt.Sprintf(
  36. "\n%v\n",
  37. licenses,
  38. ),
  39. )
  40. }
  41. }