simplify scp upload code and add some test cases

This commit is contained in:
Nicola Murino
2019-08-24 22:44:01 +02:00
parent e50c521c33
commit 1c5aac0dc4
3 changed files with 38 additions and 21 deletions

View File

@@ -436,7 +436,7 @@ func TestSCPCommandHandleErrors(t *testing.T) {
}
}
func TestRecursiveDownloadErrors(t *testing.T) {
func TestSCPRecursiveDownloadErrors(t *testing.T) {
connection := Connection{}
buf := make([]byte, 65535)
stdErrBuf := make([]byte, 65535)
@@ -475,7 +475,7 @@ func TestRecursiveDownloadErrors(t *testing.T) {
os.Remove(path)
}
func TestRecursiveUploadErrors(t *testing.T) {
func TestSCPRecursiveUploadErrors(t *testing.T) {
connection := Connection{}
buf := make([]byte, 65535)
stdErrBuf := make([]byte, 65535)