MCPcopy Create free account
hub / github.com/WICG/webpackage / createTestCerts

Function createTestCerts

go/bundle/bundle_test.go:97–107  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

95}
96
97func createTestCerts(t *testing.T) []*certurl.AugmentedCertificate {
98 certs, err := signingalgorithm.ParseCertificates([]byte(pemCerts))
99 if err != nil {
100 t.Fatal(err)
101 }
102 var acs []*certurl.AugmentedCertificate
103 for _, c := range certs {
104 acs = append(acs, &certurl.AugmentedCertificate{Cert: c})
105 }
106 return acs
107}
108
109func TestWriteAndRead(t *testing.T) {
110 for _, ver := range version.AllVersions {

Callers 1

createTestBundleFunction · 0.85

Calls 1

ParseCertificatesFunction · 0.92

Tested by

no test coverage detected