cron
travis-ci-com
1 of 1 new or added line in 1 file covered. (100.0%)
33099 of 52163 relevant lines covered (63.45%)
405.61 hits per line
1 |
module ManageIQ |
3✔ |
2 |
module Reporting |
3✔ |
3 |
module Formatter |
3✔ |
4 |
class C3Series < Array |
3✔ |
5 |
def initialize(*) |
3✔ |
6 |
super()
|
3✔ |
7 |
end
|
|
8 |
|
|
9 |
def push(datum) |
3✔ |
10 |
super(datum)
|
3✔ |
11 |
end
|
|
12 |
|
|
13 |
def sum |
3✔ |
14 |
super { |datum| datum[:value].to_f } |
× |
15 |
end
|
|
16 |
|
|
17 |
def value_at(index) |
3✔ |
18 |
self[index][:value] |
× |
19 |
end
|
|
20 |
|
|
21 |
def add_to_value(index, addition) |
3✔ |
22 |
self[index][:value] += addition |
× |
23 |
end
|
|
24 |
|
|
25 |
def set_to_zero(index) |
3✔ |
26 |
self[index][:value] = 0 |
× |
27 |
end
|
|
28 |
end
|
|
29 |
end
|
|
30 |
end
|
|
31 |
end
|