Module | Net::SSH::Test::Extensions::Channel |
In: |
lib/net/ssh/test/extensions.rb
lib/net/ssh/test/extensions.rb |
An extension to Net::SSH::Connection::Channel. Facilitates unit testing.
The testing version of Net::SSH::Connection::Channel#send_data. Calls the original implementation, and then immediately enqueues the data for output so that scripted sends are properly interpreted as discrete (rather than concatenated) data packets.
# File lib/net/ssh/test/extensions.rb, line 103 103: def send_data_for_test(data) 104: send_data_for_real(data) 105: enqueue_pending_output 106: end
The testing version of Net::SSH::Connection::Channel#send_data. Calls the original implementation, and then immediately enqueues the data for output so that scripted sends are properly interpreted as discrete (rather than concatenated) data packets.
# File lib/net/ssh/test/extensions.rb, line 103 103: def send_data_for_test(data) 104: send_data_for_real(data) 105: enqueue_pending_output 106: end