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.
25 lines
310 B
Go
25 lines
310 B
Go
package proxy
|
|
|
|
import (
|
|
"fmt"
|
|
"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)
|
|
}
|
|
fmt.Println(ca)
|
|
}
|