Commit Graph

23 Commits

Author SHA1 Message Date
Dave Cheney 50631306d7 Push c.mu.Lock/Unlock down to sendRequest
Also includes gofmt cleanups
2015-05-23 17:10:22 +10:00
Maximilian Pachl 267a179e16 added integration test for client.StatVFS 2015-05-16 00:54:02 +02:00
Alexander Neumann c70639c68b Add benchmarks for Read() and Write() 2014-10-09 20:29:58 +02:00
Alexander Neumann 5af3cfa4ea Add sftp.NewClientPipe()
This method returns a Client from a pair of pipes.  This can be used for
connecting to an SFTP server over TCP/TLS or by using the system's ssh
client program (e.g. via exec.Command).

An Example function is added, and the client integration test uses the
function.
2014-09-30 00:49:01 +02:00
Alexander Neumann c01862b019 Add integration test flag for sftp binary path 2014-09-29 23:36:14 +02:00
Alexander Neumann 47028b98ef Run gofmt on client_integration_test.go 2014-09-29 23:36:13 +02:00
Dave Cheney f881033388 missed one MarshalBinary func 2014-09-28 12:52:54 +10:00
Dave Cheney 9ad0511df9 Added integration tests for all the MarshalBinary impls. 2014-09-28 12:48:54 +10:00
Sean Treadway b5d9767c0a Consistent puncutation, names and constants
* European sentence punctuation, consistent with package docs
  * Match os.SEEK_* constants instead of numeric constants from io.Seeker
  * Consistent (shorter) receiver name for quickcheck value
2014-06-13 10:22:04 +02:00
Sean Treadway 68aec0278e Implement io.Seeker for *sftp.File
Test that reads at the seeked offset of sftp.File are consistent with
the reads of offset of os.File for the same file.

Error conditions and undefined seeks are not tested.
2014-06-11 21:17:53 +02:00
Dave Cheney b8aa2fe3d1 Fixed Read, removed ReadAt
ReadAt should be replaced by Seek when the fs interface provides it.
2013-11-15 22:04:14 +11:00
Dave Cheney fd27263026 Added hashing check 2013-11-15 21:47:28 +11:00
Dave Cheney 7af199b09e Added more comprehensive read test 2013-11-15 21:17:11 +11:00
Dave Cheney 4d6ea4f122 Added OpenFile support
Close #3
2013-11-14 15:32:21 +11:00
Dave Cheney 31b82445b2 Switched back to kr/fs 2013-11-11 12:57:03 +11:00
Dave Cheney b45014c025 Added ReadAt tests 2013-11-08 22:11:02 +11:00
Dave Cheney 216912b085 Added Client.sendRequest, and more tests 2013-11-08 21:56:25 +11:00
Dave Cheney d4d73b4a58 Added better walk tests 2013-11-08 21:24:50 +11:00
Dave Cheney a54570ce91 Added Write tests 2013-11-08 21:00:26 +11:00
Dave Cheney 0a82d462b2 more integration tests 2013-11-06 19:29:59 +11:00
Dave Cheney 44d7769a0d added File.Stat/fstat coverage 2013-11-06 16:03:08 +11:00
Dave Cheney fc1d4adce0 more integration tests 2013-11-06 15:53:14 +11:00
Dave Cheney ec6ff9e634 Initial integration tests 2013-11-06 15:40:35 +11:00