configurator/providers/file/file_test.go
Кобелев Андрей Андреевич 2e5ebb324f init
2022-06-03 11:26:57 +03:00

21 lines
315 B
Go

package file
import (
"os"
"testing"
)
type TestWrite struct {
test string
}
func TestWriteToFile(t *testing.T) {
if err := WriteToFile("../../../testWrite", TestWrite{test: "WriteToFileTest"}); err != nil {
t.Error(err)
}
if err := os.Remove("../../../testWrite.yml"); err != nil {
t.Error(err)
}
}