push
github
165 of 205 new or added lines in 9 files covered. (80.49%)
54 existing lines in 12 files now uncovered.2633 of 3075 relevant lines covered (85.63%)
16814.8 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 |
} |