()
| 106 | ]); |
| 107 | |
| 108 | function buildZoneToCategoryMap() { |
| 109 | const map = new Map(); |
| 110 | for (let [category, zone_names] of CATEGORIES.entries()) { |
| 111 | for (let zone_name of zone_names) { |
| 112 | if (map.has(zone_name)) { |
| 113 | console.error("Zone belongs to multiple categories: " + zone_name); |
| 114 | } else { |
| 115 | map.set(zone_name, category); |
| 116 | } |
| 117 | } |
| 118 | } |
| 119 | return map; |
| 120 | } |
| 121 | |
| 122 | const CATEGORY_BY_ZONE = buildZoneToCategoryMap(); |
| 123 |
no test coverage detected