lib/source-map-transformer.js
/**
 * A mechanism to convert coverage using source map information. To be typically
 * used in the context of a `Collector`.
 *
 * @class SourceMapTransformer
 * @param {Function} finder - a function that returns a source map object (or a falsy value) given a filename
 * @param {Object} opts optional
 * @param {Object} opts.store - a store to use for keeping track of coverage objects
 * @constructor
 */
A mechanism to convert coverage using source map information. To be typically
used in the context of a `Collector`.


A mechanism to convert coverage using source map information . To be typically used in the context of a ` Collector ` .
function SourceMapTransformer(finder, opts) {
    this.finder = finder;
    opts = opts || {};
    this.store = opts.store || new MemoryStore();
    this.seen = {};
    this.lastFile = null;
    this.lastData = null;
    this.doneCalled = false;
}
function SourceMapTransformer ( finder , opts ) { this . finder = finder ; opts = opts || { } ; this . store = opts . store || new MemoryStore ( ) ; this . seen = { } ; this . lastFile = null ; this . lastData = null ; this . doneCalled = false ; }
A mechanism to convert coverage using source map information.
A mechanism to convert coverage using source map information .