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

15
crypto/base_test.go Normal file
View file

@ -0,0 +1,15 @@
package crypto
import (
"io/ioutil"
)
var err error
func readTestFile(name string) string {
data, err := ioutil.ReadFile("testdata/" + name)
if err != nil {
panic(err)
}
return string(data)
}