Create key.go unit tests

This commit is contained in:
Aron Wussler 2019-05-13 14:06:54 +00:00 committed by Daniel Huigens
parent 9240e5d86a
commit 8af460ba61
6 changed files with 144 additions and 37 deletions

View file

@ -36,7 +36,6 @@ func (t Callbacks) OnError(err error) {
}
func TestDecrypt(t *testing.T) {
var pmCrypto = PmCrypto{}
callbacks := Callbacks{
Testing: t,
}
@ -65,8 +64,6 @@ func TestDecrypt(t *testing.T) {
}
func TestParse(t *testing.T) {
var pmCrypto = PmCrypto{}
body, _, atts, attHeaders, err := pmCrypto.parseMIME(readTestFile("mime_testMessage"), nil)
if err != nil {