github
233 of 323 new or added lines in 21 files covered. (72.14%)
7 existing lines in 4 files now uncovered.2575 of 2960 relevant lines covered (86.99%)
17461.69 hits per line
1 |
package utils
|
|
2 |
|
|
3 |
func Merge[T any](acc map[string]T, maps ...map[string]T) map[string]T { |
268,193✔ |
4 |
if acc == nil { |
268,193✔ |
UNCOV
5
|
acc = map[string]T{} |
× |
UNCOV
6
|
} |
× |
7 |
for _, rule := range maps { |
536,386✔ |
8 |
for k, v := range rule { |
803,839✔ |
9 |
acc[k] = v |
535,646✔ |
10 |
} |
535,646✔ |
11 |
} |
|
12 |
return acc
|
268,193✔ |
13 |
} |