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/extension.rb 39 22
82.1% 
81.8% 
 1 require 'openid/message'
 2 
 3 module OpenID
 4   # An interface for OpenID extensions.
 5   class Extension < Object
 6 
 7     def initialize
 8       @ns_uri = nil
 9       @ns_alias = nil
10     end
11 
12     # Get the string arguments that should be added to an OpenID
13     # message for this extension.
14     def get_extension_args
15       raise NotImplementedError
16     end
17 
18     # Add the arguments from this extension to the provided
19     # message, or create a new message containing only those
20     # arguments.  Returns the message with added extension args.
21     def to_message(message = nil)
22       if message.nil?
23 #         warnings.warn('Passing None to Extension.toMessage is deprecated. '
24 #                       'Creating a message assuming you want OpenID 2.',
25 #                       DeprecationWarning, stacklevel=2)
26         Message.new(OPENID2_NS)
27       end
28       message = Message.new if message.nil?
29 
30       implicit = message.is_openid1()
31 
32       message.namespaces.add_alias(@ns_uri, @ns_alias, implicit)
33       # XXX python ignores keyerror if m.ns.getAlias(uri) == alias
34 
35       message.update_args(@ns_uri, get_extension_args)
36       return message
37     end
38   end
39 end

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

Valid XHTML 1.0! Valid CSS!