roots_test.go 291 B

12345678910111213141516
  1. // Copyright (c) Tailscale Inc & AUTHORS
  2. // SPDX-License-Identifier: BSD-3-Clause
  3. package distsign
  4. import "testing"
  5. func TestParseRoots(t *testing.T) {
  6. roots, err := parseRoots()
  7. if err != nil {
  8. t.Fatal(err)
  9. }
  10. if len(roots) == 0 {
  11. t.Error("parseRoots returned no root keys")
  12. }
  13. }