(hashMap, value, labels = {}, hash = '')
| 136 | } |
| 137 | |
| 138 | function setValue(hashMap, value, labels = {}, hash = '') { |
| 139 | if (hashMap[hash]) { |
| 140 | hashMap[hash].value += value; |
| 141 | } else { |
| 142 | hashMap[hash] = { value, labels }; |
| 143 | } |
| 144 | return hashMap; |
| 145 | } |
| 146 | |
| 147 | module.exports = Counter; |
no outgoing calls
no test coverage detected