C0 code coverage information

Generated on Fri Jul 11 15:55:29 -0700 2008 with rcov 0.7.0


Code reported as executed by Ruby looks like this...
and this: this line is also marked as covered.
Lines considered as run by rcov, but not reported by Ruby, look like this,
and this: these lines were inferred by rcov (using simple heuristics).
Finally, here's a line marked as not executed.
Name Total lines Lines of code Total coverage Code coverage
lib/openid/yadis/services.rb 42 26
59.5% 
65.4% 
 1 
 2 require 'openid/yadis/filters'
 3 require 'openid/yadis/discovery'
 4 require 'openid/yadis/xrds'
 5 
 6 module OpenID
 7   module Yadis
 8     def Yadis.get_service_endpoints(input_url, flt=nil)
 9       # Perform the Yadis protocol on the input URL and return an
10       # iterable of resulting endpoint objects.
11       #
12       # @param flt: A filter object or something that is convertable
13       # to a filter object (using mkFilter) that will be used to
14       # generate endpoint objects. This defaults to generating
15       # BasicEndpoint objects.
16       result = Yadis.discover(input_url)
17       begin
18         endpoints = Yadis.apply_filter(result.normalized_uri,
19                                        result.response_text, flt)
20       rescue XRDSError => err
21         raise DiscoveryFailure.new(err.to_s, nil)
22       end
23 
24       return [result.normalized_uri, endpoints]
25     end
26 
27     def Yadis.apply_filter(normalized_uri, xrd_data, flt=nil)
28       # Generate an iterable of endpoint objects given this input data,
29       # presumably from the result of performing the Yadis protocol.
30 
31       flt = Yadis.make_filter(flt)
32       et = Yadis.parseXRDS(xrd_data)
33 
34       endpoints = []
35       each_service(et) { |service_element|
36         endpoints += flt.get_service_endpoints(normalized_uri, service_element)
37       }
38 
39       return endpoints
40     end
41   end
42 end

Generated using the rcov code coverage analysis tool for Ruby version 0.7.0.

Valid XHTML 1.0! Valid CSS!