Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
ddl/DDL_element.rb | 22 | 16 | 40.91%
|
37.50%
|
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.
1 module ACN |
2 module DDL |
3 # TODO Deprecate. |
4 # Base class for elements within DDL modules that have UUID's |
5 class DDLElement |
6 attr_accessor :module |
7 |
8 attr_accessor :uuid |
9 |
10 def initialize(mod, opts = {}) |
11 @module = mod |
12 self.uuid_or_name = opts[:uuid] |
13 end |
14 |
15 def uuid_or_name=(uuid_or_name) |
16 uuid_or_name ||= UUID.generate |
17 @uuid = @module.resolve_uuid(uuid_or_name) |
18 end |
19 |
20 end |
21 end |
22 end |
Generated on 2010-03-16 15:14:05 +1000 with rcov 0.9.2.1