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

4 years ago
package proxy
import (
4 years ago
"os"
4 years ago
"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)
}
4 years ago
err = ca.saveTo(os.Stdout)
if err != nil {
t.Error(err)
}
4 years ago
}