Last change
on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
277 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | // Coverage Map
|
---|
| 2 | // ============
|
---|
| 3 |
|
---|
| 4 | var coverageMap = {}
|
---|
| 5 |
|
---|
| 6 | function add (coverageObj) {
|
---|
| 7 | coverageMap[coverageObj.path] = coverageObj
|
---|
| 8 | }
|
---|
| 9 |
|
---|
| 10 | function get () {
|
---|
| 11 | return coverageMap
|
---|
| 12 | }
|
---|
| 13 |
|
---|
| 14 | function reset () {
|
---|
| 15 | coverageMap = {}
|
---|
| 16 | }
|
---|
| 17 |
|
---|
| 18 | module.exports = {
|
---|
| 19 | add: add,
|
---|
| 20 | get: get,
|
---|
| 21 | reset: reset
|
---|
| 22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.