You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-mitmproxy/proxy/cert_test.go

29 lines
356 B
Go

package proxy
import (
"os"
"testing"
)
func TestGetStorePath(t *testing.T) {
path, err := getStorePath("")
if err != nil {
t.Error(err)
}
if path == "" {
t.Errorf("should have path")
}
}
func TestNewCA(t *testing.T) {
ca, err := NewCA("")
if err != nil {
t.Error(err)
}
err = ca.saveTo(os.Stdout)
if err != nil {
t.Error(err)
}
}