22 lines
382 B
Go
22 lines
382 B
Go
|
package file
|
||
|
|
||
|
import (
|
||
|
"os"
|
||
|
"testing"
|
||
|
// f "gitlab.tp.digitech.ru/ecom/configurator/pkg/providers/file"
|
||
|
)
|
||
|
|
||
|
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)
|
||
|
}
|
||
|
}
|