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