Commit Graph

6 Commits

Author SHA1 Message Date
Tobias Klauser 7d8a855595 Revert PR #370
This reverts commit 3cda2a1c6b / PR #370.

Reason for revert: this broke the Travis CI build, see
https://github.com/pkg/sftp/pull/370#issuecomment-678610816
2020-08-24 11:22:05 +02:00
Tobias Klauser 3cda2a1c6b Exclude test/example code in non-test builds
The fakeFileInfoSys and testOsSys funcs are only used in tests, so
rename the files they are defined in to request_*_test.go to exclude
them from non-test builds.

Also rename request-example.go to request_example_test.go to exclude it
as well, since it uses said funcs in example code.
2020-08-10 14:14:59 +02:00
John Eikenberry 1077779d44 Revert "rename files with OS specific request test code"
Tests pass but doesn't build. :P

Need to figure out better way to organize this code.

This reverts commit 322a18e28b.
2017-03-01 20:54:40 -08:00
John Eikenberry 322a18e28b rename files with OS specific request test code
Added _test so they will only be compiled as part of the tests.
2017-03-01 19:53:59 -08:00
John Eikenberry 81c5ef6a75 rework fileinfo.Sys() output test for windows
split out the unix specific test code
2017-03-01 19:51:32 -08:00
John Eikenberry c690dc3a0d mv windows only code into windows only file
related to issue #160
2017-03-01 11:22:04 -08:00