File: rootcerts_darwin_test.go

package info (click to toggle)
golang-github-hashicorp-go-rootcerts 1.0.2-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 124 kB
  • sloc: makefile: 9
file content (17 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package rootcerts

import "testing"

func TestSystemCAsOnDarwin(t *testing.T) {
	_, err := LoadSystemCAs()
	if err != nil {
		t.Fatalf("Got error: %s", err)
	}
}

func TestCertKeychains(t *testing.T) {
	keychains := certKeychains()
	if len(keychains) != 3 {
		t.Fatalf("Expected 3 keychains, got %#v", keychains)
	}
}