coverage/index.html in net-ssh-simple-1.6.5 vs coverage/index.html in net-ssh-simple-1.6.6

- old
+ new

@@ -1,33 +1,33 @@ <!DOCTYPE html> <html xmlns='http://www.w3.org/1999/xhtml'> <head> <title>Code coverage for Net-ssh-simple</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> - <script src='./assets/0.7.1/application.js' type='text/javascript'></script> - <link href='./assets/0.7.1/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'> - <link rel="shortcut icon" type="image/png" href="./assets/0.7.1/favicon_green.png" /> - <link rel="icon" type="image/png" href="./assets/0.7.1/favicon.png" /> + <script src='./assets/0.8.0/application.js' type='text/javascript'></script> + <link href='./assets/0.8.0/application.css' media='screen, projection, print' rel='stylesheet' type='text/css'> + <link rel="shortcut icon" type="image/png" href="./assets/0.8.0/favicon_green.png" /> + <link rel="icon" type="image/png" href="./assets/0.8.0/favicon.png" /> </head> <body> <div id="loading"> - <img src="./assets/0.7.1/loading.gif" alt="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="2014-03-14T19:29:14+01:00">2014-03-14T19:29:14+01:00</abbr></div> + <div class="timestamp">Generated <abbr class="timeago" title="2014-07-10T14:32:20+02:00">2014-07-10T14:32:20+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"> - 91.9 + 96.7 </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>91.9</td> + <td>96.7</td> </tr> </tbody> </table> </div> @@ -67,12 +67,12 @@ </div> <div id="footer"> - Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.7.1 - and simplecov-html v0.7.1<br/> + Generated by <a href="http://github.com/colszowka/simplecov">simplecov</a> v0.8.2 + and simplecov-html v0.8.0<br/> using RSpec </div> <div class="source_files"> @@ -3016,24 +3016,24 @@ <span class="hits">1</span> <code class="ruby"> def ssh(host, cmd, opts={}, &amp;block)</code> </li> - <li class="covered" data-hits="68" data-linenumber="489"> - <span class="hits">68</span> + <li class="covered" data-hits="69" data-linenumber="489"> + <span class="hits">69</span> <code class="ruby"> opts = @opts.merge(opts)</code> </li> - <li class="covered" data-hits="68" data-linenumber="490"> - <span class="hits">68</span> + <li class="covered" data-hits="69" data-linenumber="490"> + <span class="hits">69</span> <code class="ruby"> with_session(host, opts) do |session|</code> </li> - <li class="covered" data-hits="67" data-linenumber="491"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="491"> + <span class="hits">68</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="67" data-linenumber="497"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="497"> + <span class="hits">68</span> <code class="ruby"> channel = session.open_channel do |chan|</code> </li> - <li class="covered" data-hits="67" data-linenumber="498"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="498"> + <span class="hits">68</span> <code class="ruby"> chan.exec cmd do |ch, success|</code> </li> - <li class="covered" data-hits="67" data-linenumber="499"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="499"> + <span class="hits">68</span> <code class="ruby"> @result[:success] = success</code> </li> - <li class="covered" data-hits="67" data-linenumber="500"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="500"> + <span class="hits">68</span> <code class="ruby"> ch.on_data do |c, data|</code> </li> - <li class="covered" data-hits="603" data-linenumber="501"> - <span class="hits">603</span> + <li class="covered" data-hits="692" data-linenumber="501"> + <span class="hits">692</span> <code class="ruby"> @result[:last_event_at] = Time.new</code> </li> - <li class="covered" data-hits="603" data-linenumber="502"> - <span class="hits">603</span> + <li class="covered" data-hits="692" data-linenumber="502"> + <span class="hits">692</span> <code class="ruby"> r = block.call(:stdout, ch, data) if block</code> </li> - <li class="covered" data-hits="603" data-linenumber="503"> - <span class="hits">603</span> + <li class="covered" data-hits="692" data-linenumber="503"> + <span class="hits">692</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="67" data-linenumber="505"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="505"> + <span class="hits">68</span> <code class="ruby"> ch.on_extended_data do |c, type, data|</code> </li> - <li class="covered" data-hits="555" data-linenumber="506"> - <span class="hits">555</span> + <li class="covered" data-hits="656" data-linenumber="506"> + <span class="hits">656</span> <code class="ruby"> @result[:last_event_at] = Time.new</code> </li> - <li class="covered" data-hits="555" data-linenumber="507"> - <span class="hits">555</span> + <li class="covered" data-hits="656" data-linenumber="507"> + <span class="hits">656</span> <code class="ruby"> r = block.call(:stderr, ch, data) if block</code> </li> - <li class="covered" data-hits="555" data-linenumber="508"> - <span class="hits">555</span> + <li class="covered" data-hits="656" data-linenumber="508"> + <span class="hits">656</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="67" data-linenumber="510"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="510"> + <span class="hits">68</span> <code class="ruby"> ch.on_request(&#39;exit-status&#39;) do |c, data|</code> </li> - <li class="covered" data-hits="62" data-linenumber="511"> - <span class="hits">62</span> + <li class="covered" data-hits="63" data-linenumber="511"> + <span class="hits">63</span> <code class="ruby"> @result[:last_event_at] = Time.new</code> </li> - <li class="covered" data-hits="62" data-linenumber="512"> - <span class="hits">62</span> + <li class="covered" data-hits="63" data-linenumber="512"> + <span class="hits">63</span> <code class="ruby"> exit_code = data.read_long</code> </li> - <li class="covered" data-hits="62" data-linenumber="513"> - <span class="hits">62</span> + <li class="covered" data-hits="63" data-linenumber="513"> + <span class="hits">63</span> <code class="ruby"> block.call(:exit_code, ch, exit_code) if block</code> </li> - <li class="covered" data-hits="62" data-linenumber="514"> - <span class="hits">62</span> + <li class="covered" data-hits="63" data-linenumber="514"> + <span class="hits">63</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="67" data-linenumber="516"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="516"> + <span class="hits">68</span> <code class="ruby"> ch.on_request(&#39;exit-signal&#39;) 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="67" data-linenumber="526"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="526"> + <span class="hits">68</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="67" data-linenumber="529"> - <span class="hits">67</span> + <li class="covered" data-hits="68" data-linenumber="529"> + <span class="hits">68</span> <code class="ruby"> wait_for_channel session, channel, @result, opts</code> </li> - <li class="covered" data-hits="63" data-linenumber="530"> - <span class="hits">63</span> + <li class="covered" data-hits="64" data-linenumber="530"> + <span class="hits">64</span> <code class="ruby"> @result[:finish_at] = Time.new</code> </li> - <li class="covered" data-hits="63" data-linenumber="531"> - <span class="hits">63</span> + <li class="covered" data-hits="64" data-linenumber="531"> + <span class="hits">64</span> <code class="ruby"> block.call(:finish, channel, nil) if block</code> </li> - <li class="covered" data-hits="63" data-linenumber="532"> - <span class="hits">63</span> + <li class="covered" data-hits="64" data-linenumber="532"> + <span class="hits">64</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={}, &amp;block)</code> </li> - <li class="covered" data-hits="101" data-linenumber="612"> - <span class="hits">101</span> + <li class="covered" data-hits="102" data-linenumber="612"> + <span class="hits">102</span> <code class="ruby"> opts[:timeout] ||= 60</code> </li> - <li class="covered" data-hits="101" data-linenumber="613"> - <span class="hits">101</span> + <li class="covered" data-hits="102" data-linenumber="613"> + <span class="hits">102</span> <code class="ruby"> opts[:timeout] = MAX_TIMEOUT if opts[:timeout] == 0</code> </li> - <li class="covered" data-hits="101" data-linenumber="614"> - <span class="hits">101</span> + <li class="covered" data-hits="102" data-linenumber="614"> + <span class="hits">102</span> <code class="ruby"> opts[:operation_timeout] ||= 3600</code> </li> - <li class="covered" data-hits="101" data-linenumber="615"> - <span class="hits">101</span> + <li class="covered" data-hits="102" data-linenumber="615"> + <span class="hits">102</span> <code class="ruby"> opts[:operation_timeout] = MAX_TIMEOUT if opts[:operation_timeout] == 0</code> </li> - <li class="covered" data-hits="101" data-linenumber="616"> - <span class="hits">101</span> + <li class="covered" data-hits="102" data-linenumber="616"> + <span class="hits">102</span> <code class="ruby"> opts[:close_timeout] ||= 5</code> </li> - <li class="covered" data-hits="101" data-linenumber="617"> - <span class="hits">101</span> + <li class="covered" data-hits="102" data-linenumber="617"> + <span class="hits">102</span> <code class="ruby"> opts[:keepalive_interval] ||= 60</code> </li> - <li class="covered" data-hits="101" data-linenumber="618"> - <span class="hits">101</span> + <li class="covered" data-hits="102" data-linenumber="618"> + <span class="hits">102</span> <code class="ruby"> begin</code> </li> - <li class="covered" data-hits="584" data-linenumber="619"> - <span class="hits">584</span> + <li class="covered" data-hits="589" data-linenumber="619"> + <span class="hits">589</span> <code class="ruby"> net_ssh_opts = opts.reject{|k,v| EXTRA_OPTS.include? k }</code> </li> - <li class="covered" data-hits="101" data-linenumber="620"> - <span class="hits">101</span> + <li class="covered" data-hits="102" data-linenumber="620"> + <span class="hits">102</span> <code class="ruby"> Timeout.timeout(opts[:operation_timeout]) do</code> </li> - <li class="covered" data-hits="101" data-linenumber="621"> - <span class="hits">101</span> + <li class="covered" data-hits="102" data-linenumber="621"> + <span class="hits">102</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="100" data-linenumber="624"> - <span class="hits">100</span> + <li class="covered" data-hits="101" data-linenumber="624"> + <span class="hits">101</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="100" data-linenumber="637"> - <span class="hits">100</span> + <li class="covered" data-hits="101" data-linenumber="637"> + <span class="hits">101</span> <code class="ruby"> session.loop(1) do</code> </li> - <li class="covered" data-hits="2345" data-linenumber="638"> - <span class="hits">2345</span> + <li class="covered" data-hits="2407" data-linenumber="638"> + <span class="hits">2407</span> <code class="ruby"> if opts[:timeout] &lt; Time.now - result[:last_event_at]</code> </li> <li class="covered" data-hits="1" data-linenumber="639"> @@ -3940,35 +3940,35 @@ <code class="ruby"> # Send keep-alive probes at the configured interval.</code> </li> - <li class="covered" data-hits="2344" data-linenumber="643"> - <span class="hits">2344</span> + <li class="covered" data-hits="2406" data-linenumber="643"> + <span class="hits">2406</span> <code class="ruby"> if opts[:keepalive_interval] &lt; Time.now.to_i - (@result[:last_keepalive_at]||0).to_i</code> </li> - <li class="covered" data-hits="103" data-linenumber="644"> - <span class="hits">103</span> + <li class="covered" data-hits="104" data-linenumber="644"> + <span class="hits">104</span> <code class="ruby"> session.send_global_request(&#39;keep-alive@openssh.com&#39;)</code> </li> - <li class="covered" data-hits="103" data-linenumber="645"> - <span class="hits">103</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="2344" data-linenumber="647"> - <span class="hits">2344</span> + <li class="covered" data-hits="2406" data-linenumber="647"> + <span class="hits">2406</span> <code class="ruby"> channel.active?</code> </li> <li class="never" data-hits="" data-linenumber="648">