push
travis-ci
740 of 787 relevant lines covered (94.03%)
219.46 hits per line
1 |
module GitWrapper |
5✔ |
2 |
module Results |
5✔ |
3 |
class LogInfo |
5✔ |
4 |
|
|
5 |
def initialize(attributes) |
5✔ |
6 |
@attributes = attributes
|
850✔ |
7 |
end
|
|
8 |
|
|
9 |
Commands::Log::ATTRIBUTES.keys.each do |name| |
5✔ |
10 |
define_method name do
|
170✔ |
11 |
@attributes[name]
|
245✔ |
12 |
end
|
|
13 |
end
|
|
14 |
|
|
15 |
def parents |
5✔ |
16 |
parent_hashes.split |
35✔ |
17 |
end
|
|
18 |
|
|
19 |
def abbreviated_parents |
5✔ |
20 |
abbreviated_parent_hashes.split |
× |
21 |
end
|
|
22 |
|
|
23 |
def merge? |
5✔ |
24 |
parents.length == 2
|
20✔ |
25 |
end
|
|
26 |
end
|
|
27 |
end
|
|
28 |
end
|