github
2519 of 5999 branches covered (41.99%)
Branch coverage included in aggregate %.
17 of 17 new or added lines in 4 files covered. (100.0%)
6282 of 12622 relevant lines covered (49.77%)
416.39 hits per line
1 |
const idCache = {}; |
39✔ |
2 |
|
39✔ |
3 |
export const set = (key, val) => {
|
39✔ |
4 |
idCache[key] = val; |
39✔ |
5 |
}; |
39✔ |
6 |
|
39✔ |
7 |
export const get = (k) => idCache[k];
|
195✔ |
8 |
export const keys = () => Object.keys(idCache);
|
|
9 |
export const size = () => keys().length;
|
39✔ |
10 |
|
|
11 |
export default { |
39✔ |
12 |
get, |
|
13 |
set, |
|
14 |
keys, |
|
15 |
size, |
39✔ |
16 |
}; |