Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/backends/srndv2/src/srnd/srnd_test.go
Jeff Becker 3a6cbf9de6 move srndv2 to nntpchan repo with vendored deps so that nothing breaks every again
this deprecates the github.com/majestrate/srndv2 repo
2017-04-03 10:00:38 -04:00

32 lines
505 B
Go

package srnd
import "testing"
func TestGenFeedsConfig(t *testing.T) {
err := GenFeedsConfig()
// Generate default feeds.ini
if err != nil {
t.Error("Cannot generate feeds.ini", err)
}
}
// func (self lineWriter) Write(data []byte) (n int, err error) {
//func OpenFileWriter(fname string) (io.WriteCloser, error) {
func TestOpenFileWriter(t *testing.T) {
_, err := OpenFileWriter("file.txt")
// Generate default feeds.ini
if err != nil {
t.Error("Cant open file writer.", err)
}
}