ingress-nginx-helm/vendor/github.com/zakjan/cert-chain-resolver/certUtil/io_test.go
Manuel de Brito Fontes bf5616c65b Replace godep with dep
2017-10-06 17:26:14 -03:00

11 lines
240 B
Go

package certUtil
import (
"github.com/stretchr/testify/assert"
"testing"
)
func TestIsPEM(t *testing.T) {
assert.True(t, IsPEM([]byte("-----BEGIN CERTIFICATE-----\n-----END CERTIFICATE-----")))
assert.False(t, IsPEM([]byte("xxx")))
}