aboutsummaryrefslogtreecommitdiff
path: root/node_modules/nyc/lib/instrumenters/noop.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/nyc/lib/instrumenters/noop.js')
-rw-r--r--node_modules/nyc/lib/instrumenters/noop.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/node_modules/nyc/lib/instrumenters/noop.js b/node_modules/nyc/lib/instrumenters/noop.js
deleted file mode 100644
index 935b587c0..000000000
--- a/node_modules/nyc/lib/instrumenters/noop.js
+++ /dev/null
@@ -1,21 +0,0 @@
-var FileCoverage = require('istanbul-lib-coverage').classes.FileCoverage
-var readInitialCoverage = require('istanbul-lib-instrument').readInitialCoverage
-
-function NOOP () {
- return {
- instrumentSync: function (code, filename) {
- var extracted = readInitialCoverage(code)
- if (extracted) {
- this.fileCoverage = new FileCoverage(extracted.coverageData)
- } else {
- this.fileCoverage = null
- }
- return code
- },
- lastFileCoverage: function () {
- return this.fileCoverage
- }
- }
-}
-
-module.exports = NOOP