Name | Total Lines | Lines of Code | Total Coverage | Code Coverage |
---|---|---|---|---|
ddl/device_description.rb | 40 | 28 | 42.50%
|
32.14%
|
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 class DeviceDescription < DDLModule |
4 |
5 attr_accessor :properties |
6 attr_accessor :parameters |
7 attr_accessor :included_devices |
8 attr_accessor :parent # Parent device if this is included. |
9 |
10 def initialize(ddl,opts = {}) |
11 @properties = opts[:properties] || {} |
12 @parameters = opts[:parameters] || {} |
13 @included_devices = opts[:included_devices] || {} |
14 @parent = opts[:parent] || nil |
15 super |
16 end |
17 |
18 def from_nokogiri(ddl,xml) |
19 # TODO set up properties/params/included devs/parent |
20 DeviceDescription.new(ddl) |
21 end |
22 |
23 def parent=(new_parent) |
24 raise ArgumentError if (new_parent == self) |
25 @parent = new_parent |
26 end |
27 |
28 end |
29 |
30 |
31 class Property |
32 |
33 end |
34 |
35 class Parameter |
36 |
37 end |
38 |
39 end |
40 end |
Generated on 2010-03-16 15:14:06 +1000 with rcov 0.9.2.1