File: rootcerts_darwin_test.go

package info (click to toggle)
golang-github-hashicorp-go-rootcerts 0.0~git20160503.0.6bb64b3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 112 kB
  • ctags: 26
  • sloc: makefile: 9
file content (17 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (2)
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)
	}
}