passforios-gopenpgp/crypto/base_test.go

16 lines
202 B
Go
Raw Normal View History

2019-05-13 14:06:54 +00:00
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)
}