(elements map[string]string, locatorName string)
| 196 | } |
| 197 | |
| 198 | func buildSection(elements map[string]string, locatorName string) []ManifestSection { |
| 199 | result := make([]ManifestSection, 0) |
| 200 | for key, value := range concatenateElementsWithSameValue(elements) { |
| 201 | manifestSectionBuilder := NewMtaManifestSectionBuilder() |
| 202 | manifestSectionBuilder.Name(key) |
| 203 | manifestSectionBuilder.Attribute(locatorName, strings.Join(value, ",")) |
| 204 | result = append(result, manifestSectionBuilder.Build()) |
| 205 | } |
| 206 | return result |
| 207 | } |
| 208 | |
| 209 | func concatenateElementsWithSameValue(elements map[string]string) map[string][]string { |
| 210 | result := make(map[string][]string) |
no test coverage detected