MCPcopy
hub / github.com/cortesi/devd / TestGenerateCert

Function TestGenerateCert

certgen_test.go:10–27  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

8)
9
10func TestGenerateCert(t *testing.T) {
11 d, err := ioutil.TempDir("", "devdtest")
12 if err != nil {
13 t.Error(err)
14 return
15 }
16 defer func() { _ = os.Remove(d) }()
17 dst := path.Join(d, "certbundle")
18 err = GenerateCert(dst)
19 if err != nil {
20 t.Error(err)
21 }
22
23 _, err = getTLSConfig(dst)
24 if err != nil {
25 t.Error(err)
26 }
27}

Callers

nothing calls this directly

Calls 2

GenerateCertFunction · 0.85
getTLSConfigFunction · 0.85

Tested by

no test coverage detected