C0 code coverage information generated on Wed Mar 15 10:52:01 MST 2006


Marked code looks like this.
This line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this.
Finally, here's a line marked as not executed.
Name Total lines Lines of code Total coverage Code coverage
./test/test_verify-hostname.rb 27 27
85.2% 
100.0% 
 1 #! /usr/bin/ruby
 2 
 3 $:.unshift File.join(File.dirname(__FILE__), "..", "lib")
 4 $:.unshift File.join(File.dirname(__FILE__), "..", "bin")
 5 
 6 require 'verify-hostnames'
 7 require 'test/unit'
 8 
 9 class TestVerifyHosts < Test::Unit::TestCase
10   def setup
11     @hosts = VerifyHosts.new('examples/equinix.psv')
12     @headers = [:datacenter_name, :rack_id, :reference_name, :host_name, :host_class_name, :netmask, :serial_number, :mac_addr, :ip, :interface_name, :make, :model, :power_bar_ip, :power_bar_port, :rack_unit, :ram, :disk1, :network_prefix, :prefix_mask, :network_partition, :network_type, :parent_host_class, :kvm_name, :kvm_port, :kvm_ip]
13   end
14 
15   def teardown
16   end
17 
18   def test_header
19 	  assert_equal(@headers, @hosts.parser.headers)
20 	  assert_equal(2090, @hosts.hosts.length)
21   end
22 
23 end
24 
25 # vim:ts=2:sw=2:sts=2:et
26 
27 

Valid XHTML 1.0!Valid CSS!