Create key.go unit tests
This commit is contained in:
parent
9240e5d86a
commit
8af460ba61
6 changed files with 144 additions and 37 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue