12 lines
200 B
Go
12 lines
200 B
Go
|
package files
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func TestCopyFile(t *testing.T) {
|
||
|
err := CopyFile("test_data/file_to_copy.txt", "test_data/copied_file.txt")
|
||
|
|
||
|
if err != nil {
|
||
|
t.Error("Can't copy the file.")
|
||
|
}
|
||
|
}
|