Removed default test file and added tests in test/ subdirectory
This commit is contained in:
parent
621847ca9a
commit
91e88f42c4
4 changed files with 142 additions and 129 deletions
11
test/util.go
Normal file
11
test/util.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package test
|
||||
|
||||
import "io/ioutil"
|
||||
|
||||
func getTestFileContent(filename string) string {
|
||||
testcontent, err := ioutil.ReadFile(filename)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return string(testcontent)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue