This file is indexed.

/usr/share/gocode/src/github.com/hashicorp/go-rootcerts/rootcerts_darwin_test.go is in golang-github-hashicorp-go-rootcerts-dev 0.0~git20160503.0.6bb64b3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 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)
	}
}