coverage/index.html in net-ssh-simple-1.6.14 vs coverage/index.html in net-ssh-simple-1.6.15
- old
+ new
@@ -12,22 +12,22 @@
<body>
<div id="loading">
<img src="./assets/0.8.0/loading.gif" alt="loading"/>
</div>
<div id="wrapper" style="display:none;">
- <div class="timestamp">Generated <abbr class="timeago" title="2016-01-19T20:22:10+01:00">2016-01-19T20:22:10+01:00</abbr></div>
+ <div class="timestamp">Generated <abbr class="timeago" title="2016-05-08T19:30:15+02:00">2016-05-08T19:30:15+02:00</abbr></div>
<ul class="group_tabs"></ul>
<div id="content">
<div class="file_list_container" id="AllFiles">
<h2>
<span class="group_name">All Files</span>
(<span class="covered_percent"><span class="green">98.8%</span></span>
covered at
<span class="covered_strength">
<span class="green">
- 73.1
+ 70.1
</span>
</span> hits/line)
</h2>
<a name="AllFiles"></a>
<div>
@@ -55,11 +55,11 @@
<td class="green strong">98.8 %</td>
<td>744</td>
<td>166</td>
<td>164</td>
<td>2</td>
- <td>73.1</td>
+ <td>70.1</td>
</tr>
</tbody>
</table>
</div>
@@ -3016,24 +3016,24 @@
<span class="hits">1</span>
<code class="ruby"> def ssh(host, cmd, opts={}, &block)</code>
</li>
- <li class="covered" data-hits="70" data-linenumber="489">
- <span class="hits">70</span>
+ <li class="covered" data-hits="68" data-linenumber="489">
+ <span class="hits">68</span>
<code class="ruby"> opts = @opts.merge(opts)</code>
</li>
- <li class="covered" data-hits="70" data-linenumber="490">
- <span class="hits">70</span>
+ <li class="covered" data-hits="68" data-linenumber="490">
+ <span class="hits">68</span>
<code class="ruby"> with_session(host, opts) do |session|</code>
</li>
- <li class="covered" data-hits="69" data-linenumber="491">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="491">
+ <span class="hits">67</span>
<code class="ruby"> @result = Result.new(</code>
</li>
<li class="never" data-hits="" data-linenumber="492">
@@ -3064,126 +3064,126 @@
<code class="ruby"></code>
</li>
- <li class="covered" data-hits="69" data-linenumber="497">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="497">
+ <span class="hits">67</span>
<code class="ruby"> channel = session.open_channel do |chan|</code>
</li>
- <li class="covered" data-hits="69" data-linenumber="498">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="498">
+ <span class="hits">67</span>
<code class="ruby"> chan.exec cmd do |ch, success|</code>
</li>
- <li class="covered" data-hits="69" data-linenumber="499">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="499">
+ <span class="hits">67</span>
<code class="ruby"> @result[:success] = success</code>
</li>
- <li class="covered" data-hits="69" data-linenumber="500">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="500">
+ <span class="hits">67</span>
<code class="ruby"> ch.on_data do |c, data|</code>
</li>
- <li class="covered" data-hits="286" data-linenumber="501">
- <span class="hits">286</span>
+ <li class="covered" data-hits="240" data-linenumber="501">
+ <span class="hits">240</span>
<code class="ruby"> @result[:last_event_at] = Time.new</code>
</li>
- <li class="covered" data-hits="286" data-linenumber="502">
- <span class="hits">286</span>
+ <li class="covered" data-hits="240" data-linenumber="502">
+ <span class="hits">240</span>
<code class="ruby"> r = block.call(:stdout, ch, data) if block</code>
</li>
- <li class="covered" data-hits="286" data-linenumber="503">
- <span class="hits">286</span>
+ <li class="covered" data-hits="240" data-linenumber="503">
+ <span class="hits">240</span>
<code class="ruby"> @result[:stdout] += data.to_s unless r == :no_append</code>
</li>
<li class="never" data-hits="" data-linenumber="504">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="69" data-linenumber="505">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="505">
+ <span class="hits">67</span>
<code class="ruby"> ch.on_extended_data do |c, type, data|</code>
</li>
- <li class="covered" data-hits="266" data-linenumber="506">
- <span class="hits">266</span>
+ <li class="covered" data-hits="202" data-linenumber="506">
+ <span class="hits">202</span>
<code class="ruby"> @result[:last_event_at] = Time.new</code>
</li>
- <li class="covered" data-hits="266" data-linenumber="507">
- <span class="hits">266</span>
+ <li class="covered" data-hits="202" data-linenumber="507">
+ <span class="hits">202</span>
<code class="ruby"> r = block.call(:stderr, ch, data) if block</code>
</li>
- <li class="covered" data-hits="266" data-linenumber="508">
- <span class="hits">266</span>
+ <li class="covered" data-hits="202" data-linenumber="508">
+ <span class="hits">202</span>
<code class="ruby"> @result[:stderr] += data.to_s unless r == :no_append</code>
</li>
<li class="never" data-hits="" data-linenumber="509">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="69" data-linenumber="510">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="510">
+ <span class="hits">67</span>
<code class="ruby"> ch.on_request('exit-status') do |c, data|</code>
</li>
- <li class="covered" data-hits="64" data-linenumber="511">
- <span class="hits">64</span>
+ <li class="covered" data-hits="62" data-linenumber="511">
+ <span class="hits">62</span>
<code class="ruby"> @result[:last_event_at] = Time.new</code>
</li>
- <li class="covered" data-hits="64" data-linenumber="512">
- <span class="hits">64</span>
+ <li class="covered" data-hits="62" data-linenumber="512">
+ <span class="hits">62</span>
<code class="ruby"> exit_code = data.read_long</code>
</li>
- <li class="covered" data-hits="64" data-linenumber="513">
- <span class="hits">64</span>
+ <li class="covered" data-hits="62" data-linenumber="513">
+ <span class="hits">62</span>
<code class="ruby"> block.call(:exit_code, ch, exit_code) if block</code>
</li>
- <li class="covered" data-hits="64" data-linenumber="514">
- <span class="hits">64</span>
+ <li class="covered" data-hits="62" data-linenumber="514">
+ <span class="hits">62</span>
<code class="ruby"> @result[:exit_code] = exit_code</code>
</li>
<li class="never" data-hits="" data-linenumber="515">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="69" data-linenumber="516">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="516">
+ <span class="hits">67</span>
<code class="ruby"> ch.on_request('exit-signal') do |c, data|</code>
</li>
<li class="covered" data-hits="3" data-linenumber="517">
@@ -3238,12 +3238,12 @@
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="69" data-linenumber="526">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="526">
+ <span class="hits">67</span>
<code class="ruby"> block.call(:start, ch, nil) if block</code>
</li>
<li class="never" data-hits="" data-linenumber="527">
@@ -3256,30 +3256,30 @@
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="69" data-linenumber="529">
- <span class="hits">69</span>
+ <li class="covered" data-hits="67" data-linenumber="529">
+ <span class="hits">67</span>
<code class="ruby"> wait_for_channel session, channel, @result, opts</code>
</li>
- <li class="covered" data-hits="65" data-linenumber="530">
- <span class="hits">65</span>
+ <li class="covered" data-hits="63" data-linenumber="530">
+ <span class="hits">63</span>
<code class="ruby"> @result[:finish_at] = Time.new</code>
</li>
- <li class="covered" data-hits="65" data-linenumber="531">
- <span class="hits">65</span>
+ <li class="covered" data-hits="63" data-linenumber="531">
+ <span class="hits">63</span>
<code class="ruby"> block.call(:finish, channel, nil) if block</code>
</li>
- <li class="covered" data-hits="65" data-linenumber="532">
- <span class="hits">65</span>
+ <li class="covered" data-hits="63" data-linenumber="532">
+ <span class="hits">63</span>
<code class="ruby"> @result</code>
</li>
<li class="never" data-hits="" data-linenumber="533">
@@ -3754,66 +3754,66 @@
<span class="hits">1</span>
<code class="ruby"> def with_session(host, opts={}, &block)</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="612">
- <span class="hits">103</span>
+ <li class="covered" data-hits="101" data-linenumber="612">
+ <span class="hits">101</span>
<code class="ruby"> opts[:timeout] ||= 60</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="613">
- <span class="hits">103</span>
+ <li class="covered" data-hits="101" data-linenumber="613">
+ <span class="hits">101</span>
<code class="ruby"> opts[:timeout] = MAX_TIMEOUT if opts[:timeout] == 0</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="614">
- <span class="hits">103</span>
+ <li class="covered" data-hits="101" data-linenumber="614">
+ <span class="hits">101</span>
<code class="ruby"> opts[:operation_timeout] ||= 3600</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="615">
- <span class="hits">103</span>
+ <li class="covered" data-hits="101" data-linenumber="615">
+ <span class="hits">101</span>
<code class="ruby"> opts[:operation_timeout] = MAX_TIMEOUT if opts[:operation_timeout] == 0</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="616">
- <span class="hits">103</span>
+ <li class="covered" data-hits="101" data-linenumber="616">
+ <span class="hits">101</span>
<code class="ruby"> opts[:close_timeout] ||= 5</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="617">
- <span class="hits">103</span>
+ <li class="covered" data-hits="101" data-linenumber="617">
+ <span class="hits">101</span>
<code class="ruby"> opts[:keepalive_interval] ||= 60</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="618">
- <span class="hits">103</span>
+ <li class="covered" data-hits="101" data-linenumber="618">
+ <span class="hits">101</span>
<code class="ruby"> begin</code>
</li>
- <li class="covered" data-hits="594" data-linenumber="619">
- <span class="hits">594</span>
+ <li class="covered" data-hits="584" data-linenumber="619">
+ <span class="hits">584</span>
<code class="ruby"> net_ssh_opts = opts.reject{|k,v| EXTRA_OPTS.include? k }</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="620">
- <span class="hits">103</span>
+ <li class="covered" data-hits="101" data-linenumber="620">
+ <span class="hits">101</span>
<code class="ruby"> ::Timeout.timeout(opts[:operation_timeout]) do</code>
</li>
- <li class="covered" data-hits="103" data-linenumber="621">
- <span class="hits">103</span>
+ <li class="covered" data-hits="101" data-linenumber="621">
+ <span class="hits">101</span>
<code class="ruby"> session = Thread.current[:ssh_simple_sessions][host.hash] \</code>
</li>
<li class="never" data-hits="" data-linenumber="622">
@@ -3826,12 +3826,12 @@
<code class="ruby"> || Net::SSH.start(*[host, opts[:user], net_ssh_opts])</code>
</li>
- <li class="covered" data-hits="102" data-linenumber="624">
- <span class="hits">102</span>
+ <li class="covered" data-hits="100" data-linenumber="624">
+ <span class="hits">100</span>
<code class="ruby"> block.call(session)</code>
</li>
<li class="never" data-hits="" data-linenumber="625">
@@ -3904,18 +3904,18 @@
<span class="hits">1</span>
<code class="ruby"> def wait_for_channel(session, channel, result, opts)</code>
</li>
- <li class="covered" data-hits="102" data-linenumber="637">
- <span class="hits">102</span>
+ <li class="covered" data-hits="100" data-linenumber="637">
+ <span class="hits">100</span>
<code class="ruby"> session.loop(1) do</code>
</li>
- <li class="covered" data-hits="1889" data-linenumber="638">
- <span class="hits">1889</span>
+ <li class="covered" data-hits="1855" data-linenumber="638">
+ <span class="hits">1855</span>
<code class="ruby"> if opts[:timeout] < Time.now - result[:last_event_at]</code>
</li>
<li class="covered" data-hits="1" data-linenumber="639">
@@ -3940,36 +3940,36 @@
<code class="ruby"> # Send keep-alive probes at the configured interval.</code>
</li>
- <li class="covered" data-hits="1888" data-linenumber="643">
- <span class="hits">1888</span>
+ <li class="covered" data-hits="1854" data-linenumber="643">
+ <span class="hits">1854</span>
<code class="ruby"> if opts[:keepalive_interval] < Time.now.to_i - (@result[:last_keepalive_at]||0).to_i</code>
</li>
- <li class="covered" data-hits="105" data-linenumber="644">
- <span class="hits">105</span>
+ <li class="covered" data-hits="104" data-linenumber="644">
+ <span class="hits">104</span>
<code class="ruby"> session.send_global_request('keep-alive@openssh.com')</code>
</li>
- <li class="covered" data-hits="105" data-linenumber="645">
- <span class="hits">105</span>
+ <li class="covered" data-hits="104" data-linenumber="645">
+ <span class="hits">104</span>
<code class="ruby"> @result[:last_keepalive_at] = Time.now</code>
</li>
<li class="never" data-hits="" data-linenumber="646">
<code class="ruby"> end</code>
</li>
- <li class="covered" data-hits="1888" data-linenumber="647">
- <span class="hits">1888</span>
+ <li class="covered" data-hits="1854" data-linenumber="647">
+ <span class="hits">1854</span>
<code class="ruby"> channel.active?</code>
</li>
<li class="never" data-hits="" data-linenumber="648">
@@ -4048,29 +4048,29 @@
<span class="hits">33</span>
<code class="ruby"> channel = session.scp.send(mode, src, dst) do |ch, name, sent, total|</code>
</li>
- <li class="covered" data-hits="62" data-linenumber="661">
- <span class="hits">62</span>
+ <li class="covered" data-hits="64" data-linenumber="661">
+ <span class="hits">64</span>
<code class="ruby"> @result[:total] ||= total</code>
</li>
- <li class="covered" data-hits="62" data-linenumber="662">
- <span class="hits">62</span>
+ <li class="covered" data-hits="64" data-linenumber="662">
+ <span class="hits">64</span>
<code class="ruby"> @result[:sent] = sent</code>
</li>
- <li class="covered" data-hits="62" data-linenumber="663">
- <span class="hits">62</span>
+ <li class="covered" data-hits="64" data-linenumber="663">
+ <span class="hits">64</span>
<code class="ruby"> @result[:last_event_at] = Time.new</code>
</li>
- <li class="covered" data-hits="62" data-linenumber="664">
- <span class="hits">62</span>
+ <li class="covered" data-hits="64" data-linenumber="664">
+ <span class="hits">64</span>
<code class="ruby"> block.call(sent, total) unless block.nil?</code>
</li>
<li class="never" data-hits="" data-linenumber="665">