UNPKG

v8-to-istanbul

Version:

convert from v8 coverage format to istanbul's format

2,577 lines 45.3 kB
/* IMPORTANT
 * This snapshot file is auto-generated, but designed for humans.
 * It should be checked into source control and tracked carefully.
 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
 * Make sure to inspect the output below.  Do not ignore changes!
 */
'use strict'
exports[`test/v8-to-istanbul.js TAP > must match snapshot 1`] = `
Object {
  "path": "./test/fixtures/scripts/branches.js",
  "statementMap": Object {
    "0": Object {
      "start": Object {
        "line": 1,
        "column": 0,
      },
      "end": Object {
        "line": 1,
        "column": 26,
      },
    },
    "1": Object {
      "start": Object {
        "line": 2,
        "column": 0,
      },
      "end": Object {
        "line": 2,
        "column": 18,
      },
    },
    "2": Object {
      "start": Object {
        "line": 3,
        "column": 0,
      },
      "end": Object {
        "line": 3,
        "column": 0,
      },
    },
    "3": Object {
      "start": Object {
        "line": 4,
        "column": 0,
      },
      "end": Object {
        "line": 4,
        "column": 31,
      },
    },
    "4": Object {
      "start": Object {
        "line": 5,
        "column": 0,
      },
      "end": Object {
        "line": 5,
        "column": 37,
      },
    },
    "5": Object {
      "start": Object {
        "line": 6,
        "column": 0,
      },
      "end": Object {
        "line": 6,
        "column": 0,
      },
    },
    "6": Object {
      "start": Object {
        "line": 7,
        "column": 0,
      },
      "end": Object {
        "line": 7,
        "column": 18,
      },
    },
    "7": Object {
      "start": Object {
        "line": 8,
        "column": 0,
      },
      "end": Object {
        "line": 8,
        "column": 31,
      },
    },
    "8": Object {
      "start": Object {
        "line": 9,
        "column": 0,
      },
      "end": Object {
        "line": 9,
        "column": 0,
      },
    },
    "9": Object {
      "start": Object {
        "line": 10,
        "column": 0,
      },
      "end": Object {
        "line": 10,
        "column": 16,
      },
    },
    "10": Object {
      "start": Object {
        "line": 11,
        "column": 0,
      },
      "end": Object {
        "line": 11,
        "column": 12,
      },
    },
    "11": Object {
      "start": Object {
        "line": 12,
        "column": 0,
      },
      "end": Object {
        "line": 12,
        "column": 14,
      },
    },
    "12": Object {
      "start": Object {
        "line": 13,
        "column": 0,
      },
      "end": Object {
        "line": 13,
        "column": 1,
      },
    },
    "13": Object {
      "start": Object {
        "line": 14,
        "column": 0,
      },
      "end": Object {
        "line": 14,
        "column": 8,
      },
    },
    "14": Object {
      "start": Object {
        "line": 15,
        "column": 0,
      },
      "end": Object {
        "line": 15,
        "column": 25,
      },
    },
    "15": Object {
      "start": Object {
        "line": 16,
        "column": 0,
      },
      "end": Object {
        "line": 16,
        "column": 3,
      },
    },
    "16": Object {
      "start": Object {
        "line": 17,
        "column": 0,
      },
      "end": Object {
        "line": 17,
        "column": 0,
      },
    },
    "17": Object {
      "start": Object {
        "line": 18,
        "column": 0,
      },
      "end": Object {
        "line": 18,
        "column": 28,
      },
    },
    "18": Object {
      "start": Object {
        "line": 19,
        "column": 0,
      },
      "end": Object {
        "line": 19,
        "column": 15,
      },
    },
    "19": Object {
      "start": Object {
        "line": 20,
        "column": 0,
      },
      "end": Object {
        "line": 20,
        "column": 13,
      },
    },
    "20": Object {
      "start": Object {
        "line": 21,
        "column": 0,
      },
      "end": Object {
        "line": 21,
        "column": 23,
      },
    },
    "21": Object {
      "start": Object {
        "line": 22,
        "column": 0,
      },
      "end": Object {
        "line": 22,
        "column": 10,
      },
    },
    "22": Object {
      "start": Object {
        "line": 23,
        "column": 0,
      },
      "end": Object {
        "line": 23,
        "column": 16,
      },
    },
    "23": Object {
      "start": Object {
        "line": 24,
        "column": 0,
      },
      "end": Object {
        "line": 24,
        "column": 3,
      },
    },
    "24": Object {
      "start": Object {
        "line": 25,
        "column": 0,
      },
      "end": Object {
        "line": 25,
        "column": 1,
      },
    },
    "25": Object {
      "start": Object {
        "line": 26,
        "column": 0,
      },
      "end": Object {
        "line": 26,
        "column": 0,
      },
    },
    "26": Object {
      "start": Object {
        "line": 27,
        "column": 0,
      },
      "end": Object {
        "line": 27,
        "column": 3,
      },
    },
    "27": Object {
      "start": Object {
        "line": 28,
        "column": 0,
      },
      "end": Object {
        "line": 28,
        "column": 0,
      },
    },
    "28": Object {
      "start": Object {
        "line": 29,
        "column": 0,
      },
      "end": Object {
        "line": 29,
        "column": 46,
      },
    },
    "29": Object {
      "start": Object {
        "line": 30,
        "column": 0,
      },
      "end": Object {
        "line": 30,
        "column": 15,
      },
    },
    "30": Object {
      "start": Object {
        "line": 31,
        "column": 0,
      },
      "end": Object {
        "line": 31,
        "column": 10,
      },
    },
  },
  "s": Object {
    "0": 1,
    "1": 1,
    "2": 1,
    "3": 1,
    "4": 1,
    "5": 1,
    "6": 1,
    "7": 1,
    "8": 1,
    "9": 1,
    "10": 1,
    "11": 1,
    "12": 1,
    "13": 1,
    "14": 1,
    "15": 1,
    "16": 1,
    "17": 1,
    "18": 1,
    "19": 1,
    "20": 1,
    "21": 1,
    "22": 1,
    "23": 1,
    "24": 1,
    "25": 1,
    "26": 1,
    "27": 1,
    "28": 1,
    "29": 1,
    "30": 1,
  },
  "branchMap": Object {
    "0": Object {
      "type": "branch",
      "line": 1,
      "loc": Object {
        "start": Object {
          "line": 1,
          "column": 0,
        },
        "end": Object {
          "line": 31,
          "column": 10,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 1,
            "column": 0,
          },
          "end": Object {
            "line": 31,
            "column": 10,
          },
        },
      ],
    },
    "1": Object {
      "type": "branch",
      "line": 1,
      "loc": Object {
        "start": Object {
          "line": 1,
          "column": 1,
        },
        "end": Object {
          "line": 31,
          "column": 10,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 1,
            "column": 1,
          },
          "end": Object {
            "line": 31,
            "column": 10,
          },
        },
      ],
    },
    "2": Object {
      "type": "branch",
      "line": 5,
      "loc": Object {
        "start": Object {
          "line": 5,
          "column": 23,
        },
        "end": Object {
          "line": 5,
          "column": 28,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 5,
            "column": 23,
          },
          "end": Object {
            "line": 5,
            "column": 28,
          },
        },
      ],
    },
    "3": Object {
      "type": "branch",
      "line": 8,
      "loc": Object {
        "start": Object {
          "line": 8,
          "column": 22,
        },
        "end": Object {
          "line": 8,
          "column": 29,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 8,
            "column": 22,
          },
          "end": Object {
            "line": 8,
            "column": 29,
          },
        },
      ],
    },
    "4": Object {
      "type": "branch",
      "line": 14,
      "loc": Object {
        "start": Object {
          "line": 14,
          "column": 8,
        },
        "end": Object {
          "line": 15,
          "column": 4,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 14,
            "column": 8,
          },
          "end": Object {
            "line": 15,
            "column": 4,
          },
        },
      ],
    },
    "5": Object {
      "type": "branch",
      "line": 18,
      "loc": Object {
        "start": Object {
          "line": 18,
          "column": 3,
        },
        "end": Object {
          "line": 18,
          "column": 21,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 18,
            "column": 3,
          },
          "end": Object {
            "line": 18,
            "column": 21,
          },
        },
      ],
    },
    "6": Object {
      "type": "branch",
      "line": 22,
      "loc": Object {
        "start": Object {
          "line": 22,
          "column": 8,
        },
        "end": Object {
          "line": 30,
          "column": 8,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 22,
            "column": 8,
          },
          "end": Object {
            "line": 30,
            "column": 8,
          },
        },
      ],
    },
    "7": Object {
      "type": "branch",
      "line": 29,
      "loc": Object {
        "start": Object {
          "line": 29,
          "column": 31,
        },
        "end": Object {
          "line": 30,
          "column": 6,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 29,
            "column": 31,
          },
          "end": Object {
            "line": 30,
            "column": 6,
          },
        },
      ],
    },
  },
  "b": Object {
    "0": Array [
      1,
    ],
    "1": Array [
      1,
    ],
    "2": Array [
      0,
    ],
    "3": Array [
      0,
    ],
    "4": Array [
      0,
    ],
    "5": Array [
      0,
    ],
    "6": Array [
      1,
    ],
    "7": Array [
      0,
    ],
  },
  "fnMap": Object {
    "0": Object {
      "name": "e",
      "decl": Object {
        "start": Object {
          "line": 22,
          "column": 8,
        },
        "end": Object {
          "line": 30,
          "column": 8,
        },
      },
      "loc": Object {
        "start": Object {
          "line": 22,
          "column": 8,
        },
        "end": Object {
          "line": 30,
          "column": 8,
        },
      },
      "line": 22,
    },
  },
  "f": Object {
    "0": 1,
  },
}
`

exports[`test/v8-to-istanbul.js TAP > must match snapshot 2`] = `
Object {
  "path": "./test/fixtures/scripts/functions.js",
  "statementMap": Object {
    "0": Object {
      "start": Object {
        "line": 1,
        "column": 0,
      },
      "end": Object {
        "line": 1,
        "column": 30,
      },
    },
    "1": Object {
      "start": Object {
        "line": 2,
        "column": 0,
      },
      "end": Object {
        "line": 2,
        "column": 14,
      },
    },
    "2": Object {
      "start": Object {
        "line": 3,
        "column": 0,
      },
      "end": Object {
        "line": 3,
        "column": 16,
      },
    },
    "3": Object {
      "start": Object {
        "line": 4,
        "column": 0,
      },
      "end": Object {
        "line": 4,
        "column": 31,
      },
    },
    "4": Object {
      "start": Object {
        "line": 5,
        "column": 0,
      },
      "end": Object {
        "line": 5,
        "column": 3,
      },
    },
    "5": Object {
      "start": Object {
        "line": 6,
        "column": 0,
      },
      "end": Object {
        "line": 6,
        "column": 1,
      },
    },
    "6": Object {
      "start": Object {
        "line": 7,
        "column": 0,
      },
      "end": Object {
        "line": 7,
        "column": 0,
      },
    },
    "7": Object {
      "start": Object {
        "line": 8,
        "column": 0,
      },
      "end": Object {
        "line": 8,
        "column": 31,
      },
    },
    "8": Object {
      "start": Object {
        "line": 9,
        "column": 0,
      },
      "end": Object {
        "line": 9,
        "column": 17,
      },
    },
    "9": Object {
      "start": Object {
        "line": 10,
        "column": 0,
      },
      "end": Object {
        "line": 10,
        "column": 37,
      },
    },
    "10": Object {
      "start": Object {
        "line": 11,
        "column": 0,
      },
      "end": Object {
        "line": 11,
        "column": 21,
      },
    },
    "11": Object {
      "start": Object {
        "line": 12,
        "column": 0,
      },
      "end": Object {
        "line": 12,
        "column": 23,
      },
    },
    "12": Object {
      "start": Object {
        "line": 13,
        "column": 0,
      },
      "end": Object {
        "line": 13,
        "column": 13,
      },
    },
    "13": Object {
      "start": Object {
        "line": 14,
        "column": 0,
      },
      "end": Object {
        "line": 14,
        "column": 3,
      },
    },
    "14": Object {
      "start": Object {
        "line": 15,
        "column": 0,
      },
      "end": Object {
        "line": 15,
        "column": 0,
      },
    },
    "15": Object {
      "start": Object {
        "line": 16,
        "column": 0,
      },
      "end": Object {
        "line": 16,
        "column": 3,
      },
    },
    "16": Object {
      "start": Object {
        "line": 17,
        "column": 0,
      },
      "end": Object {
        "line": 17,
        "column": 0,
      },
    },
    "17": Object {
      "start": Object {
        "line": 18,
        "column": 0,
      },
      "end": Object {
        "line": 18,
        "column": 41,
      },
    },
    "18": Object {
      "start": Object {
        "line": 19,
        "column": 0,
      },
      "end": Object {
        "line": 19,
        "column": 17,
      },
    },
    "19": Object {
      "start": Object {
        "line": 20,
        "column": 0,
      },
      "end": Object {
        "line": 20,
        "column": 14,
      },
    },
    "20": Object {
      "start": Object {
        "line": 21,
        "column": 0,
      },
      "end": Object {
        "line": 21,
        "column": 17,
      },
    },
    "21": Object {
      "start": Object {
        "line": 22,
        "column": 0,
      },
      "end": Object {
        "line": 22,
        "column": 6,
      },
    },
    "22": Object {
      "start": Object {
        "line": 23,
        "column": 0,
      },
      "end": Object {
        "line": 23,
        "column": 1,
      },
    },
    "23": Object {
      "start": Object {
        "line": 24,
        "column": 0,
      },
      "end": Object {
        "line": 24,
        "column": 0,
      },
    },
    "24": Object {
      "start": Object {
        "line": 25,
        "column": 0,
      },
      "end": Object {
        "line": 25,
        "column": 8,
      },
    },
    "25": Object {
      "start": Object {
        "line": 26,
        "column": 0,
      },
      "end": Object {
        "line": 26,
        "column": 0,
      },
    },
    "26": Object {
      "start": Object {
        "line": 27,
        "column": 0,
      },
      "end": Object {
        "line": 27,
        "column": 48,
      },
    },
    "27": Object {
      "start": Object {
        "line": 28,
        "column": 0,
      },
      "end": Object {
        "line": 28,
        "column": 11,
      },
    },
    "28": Object {
      "start": Object {
        "line": 29,
        "column": 0,
      },
      "end": Object {
        "line": 29,
        "column": 18,
      },
    },
    "29": Object {
      "start": Object {
        "line": 30,
        "column": 0,
      },
      "end": Object {
        "line": 30,
        "column": 18,
      },
    },
    "30": Object {
      "start": Object {
        "line": 31,
        "column": 0,
      },
      "end": Object {
        "line": 31,
        "column": 3,
      },
    },
    "31": Object {
      "start": Object {
        "line": 32,
        "column": 0,
      },
      "end": Object {
        "line": 32,
        "column": 12,
      },
    },
    "32": Object {
      "start": Object {
        "line": 33,
        "column": 0,
      },
      "end": Object {
        "line": 33,
        "column": 25,
      },
    },
    "33": Object {
      "start": Object {
        "line": 34,
        "column": 0,
      },
      "end": Object {
        "line": 34,
        "column": 3,
      },
    },
    "34": Object {
      "start": Object {
        "line": 35,
        "column": 0,
      },
      "end": Object {
        "line": 35,
        "column": 1,
      },
    },
    "35": Object {
      "start": Object {
        "line": 36,
        "column": 0,
      },
      "end": Object {
        "line": 36,
        "column": 0,
      },
    },
    "36": Object {
      "start": Object {
        "line": 37,
        "column": 0,
      },
      "end": Object {
        "line": 37,
        "column": 42,
      },
    },
    "37": Object {
      "start": Object {
        "line": 38,
        "column": 0,
      },
      "end": Object {
        "line": 38,
        "column": 13,
      },
    },
    "38": Object {
      "start": Object {
        "line": 39,
        "column": 0,
      },
      "end": Object {
        "line": 39,
        "column": 20,
      },
    },
    "39": Object {
      "start": Object {
        "line": 40,
        "column": 0,
      },
      "end": Object {
        "line": 40,
        "column": 20,
      },
    },
    "40": Object {
      "start": Object {
        "line": 41,
        "column": 0,
      },
      "end": Object {
        "line": 41,
        "column": 5,
      },
    },
    "41": Object {
      "start": Object {
        "line": 42,
        "column": 0,
      },
      "end": Object {
        "line": 42,
        "column": 14,
      },
    },
    "42": Object {
      "start": Object {
        "line": 43,
        "column": 0,
      },
      "end": Object {
        "line": 43,
        "column": 40,
      },
    },
    "43": Object {
      "start": Object {
        "line": 44,
        "column": 0,
      },
      "end": Object {
        "line": 44,
        "column": 5,
      },
    },
    "44": Object {
      "start": Object {
        "line": 45,
        "column": 0,
      },
      "end": Object {
        "line": 45,
        "column": 3,
      },
    },
    "45": Object {
      "start": Object {
        "line": 46,
        "column": 0,
      },
      "end": Object {
        "line": 46,
        "column": 0,
      },
    },
    "46": Object {
      "start": Object {
        "line": 47,
        "column": 0,
      },
      "end": Object {
        "line": 47,
        "column": 19,
      },
    },
    "47": Object {
      "start": Object {
        "line": 48,
        "column": 0,
      },
      "end": Object {
        "line": 48,
        "column": 9,
      },
    },
  },
  "s": Object {
    "0": 1,
    "1": 1,
    "2": 1,
    "3": 1,
    "4": 0,
    "5": 0,
    "6": 0,
    "7": 0,
    "8": 0,
    "9": 1,
    "10": 1,
    "11": 1,
    "12": 1,
    "13": 1,
    "14": 1,
    "15": 1,
    "16": 1,
    "17": 1,
    "18": 1,
    "19": 1,
    "20": 1,
    "21": 1,
    "22": 1,
    "23": 1,
    "24": 1,
    "25": 1,
    "26": 1,
    "27": 1,
    "28": 1,
    "29": 1,
    "30": 1,
    "31": 1,
    "32": 1,
    "33": 0,
    "34": 0,
    "35": 0,
    "36": 1,
    "37": 0,
    "38": 1,
    "39": 1,
    "40": 1,
    "41": 1,
    "42": 1,
    "43": 1,
    "44": 1,
    "45": 1,
    "46": 1,
    "47": 1,
  },
  "branchMap": Object {
    "0": Object {
      "type": "branch",
      "line": 1,
      "loc": Object {
        "start": Object {
          "line": 1,
          "column": 0,
        },
        "end": Object {
          "line": 48,
          "column": 9,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 1,
            "column": 0,
          },
          "end": Object {
            "line": 48,
            "column": 9,
          },
        },
      ],
    },
    "1": Object {
      "type": "branch",
      "line": 1,
      "loc": Object {
        "start": Object {
          "line": 1,
          "column": 1,
        },
        "end": Object {
          "line": 48,
          "column": 9,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 1,
            "column": 1,
          },
          "end": Object {
            "line": 48,
            "column": 9,
          },
        },
      ],
    },
    "2": Object {
      "type": "branch",
      "line": 11,
      "loc": Object {
        "start": Object {
          "line": 11,
          "column": 8,
        },
        "end": Object {
          "line": 19,
          "column": 13,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 11,
            "column": 8,
          },
          "end": Object {
            "line": 19,
            "column": 13,
          },
        },
      ],
    },
    "3": Object {
      "type": "branch",
      "line": 13,
      "loc": Object {
        "start": Object {
          "line": 13,
          "column": 6,
        },
        "end": Object {
          "line": 14,
          "column": 1,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 13,
            "column": 6,
          },
          "end": Object {
            "line": 14,
            "column": 1,
          },
        },
      ],
    },
    "4": Object {
      "type": "branch",
      "line": 18,
      "loc": Object {
        "start": Object {
          "line": 18,
          "column": 32,
        },
        "end": Object {
          "line": 18,
          "column": 37,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 18,
            "column": 32,
          },
          "end": Object {
            "line": 18,
            "column": 37,
          },
        },
      ],
    },
    "5": Object {
      "type": "branch",
      "line": 19,
      "loc": Object {
        "start": Object {
          "line": 19,
          "column": 9,
        },
        "end": Object {
          "line": 19,
          "column": 12,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 19,
            "column": 9,
          },
          "end": Object {
            "line": 19,
            "column": 12,
          },
        },
      ],
    },
    "6": Object {
      "type": "branch",
      "line": 27,
      "loc": Object {
        "start": Object {
          "line": 27,
          "column": 1,
        },
        "end": Object {
          "line": 28,
          "column": 1,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 27,
            "column": 1,
          },
          "end": Object {
            "line": 28,
            "column": 1,
          },
        },
      ],
    },
    "7": Object {
      "type": "branch",
      "line": 43,
      "loc": Object {
        "start": Object {
          "line": 43,
          "column": 15,
        },
        "end": Object {
          "line": 44,
          "column": 5,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 43,
            "column": 15,
          },
          "end": Object {
            "line": 44,
            "column": 5,
          },
        },
      ],
    },
    "8": Object {
      "type": "branch",
      "line": 47,
      "loc": Object {
        "start": Object {
          "line": 47,
          "column": 5,
        },
        "end": Object {
          "line": 48,
          "column": 9,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 47,
            "column": 5,
          },
          "end": Object {
            "line": 48,
            "column": 9,
          },
        },
      ],
    },
  },
  "b": Object {
    "0": Array [
      1,
    ],
    "1": Array [
      1,
    ],
    "2": Array [
      1,
    ],
    "3": Array [
      0,
    ],
    "4": Array [
      0,
    ],
    "5": Array [
      0,
    ],
    "6": Array [
      2,
    ],
    "7": Array [
      1,
    ],
    "8": Array [
      1,
    ],
  },
  "fnMap": Object {
    "0": Object {
      "name": "a",
      "decl": Object {
        "start": Object {
          "line": 4,
          "column": 30,
        },
        "end": Object {
          "line": 10,
          "column": 10,
        },
      },
      "loc": Object {
        "start": Object {
          "line": 4,
          "column": 30,
        },
        "end": Object {
          "line": 10,
          "column": 10,
        },
      },
      "line": 4,
    },
    "1": Object {
      "name": "b",
      "decl": Object {
        "start": Object {
          "line": 11,
          "column": 8,
        },
        "end": Object {
          "line": 19,
          "column": 13,
        },
      },
      "loc": Object {
        "start": Object {
          "line": 11,
          "column": 8,
        },
        "end": Object {
          "line": 19,
          "column": 13,
        },
      },
      "line": 11,
    },
    "2": Object {
      "name": "c",
      "decl": Object {
        "start": Object {
          "line": 27,
          "column": 1,
        },
        "end": Object {
          "line": 28,
          "column": 1,
        },
      },
      "loc": Object {
        "start": Object {
          "line": 27,
          "column": 1,
        },
        "end": Object {
          "line": 28,
          "column": 1,
        },
      },
      "line": 27,
    },
    "3": Object {
      "name": "Foo",
      "decl": Object {
        "start": Object {
          "line": 33,
          "column": 21,
        },
        "end": Object {
          "line": 37,
          "column": 15,
        },
      },
      "loc": Object {
        "start": Object {
          "line": 33,
          "column": 21,
        },
        "end": Object {
          "line": 37,
          "column": 15,
        },
      },
      "line": 33,
    },
    "4": Object {
      "name": "hello",
      "decl": Object {
        "start": Object {
          "line": 37,
          "column": 24,
        },
        "end": Object {
          "line": 39,
          "column": 1,
        },
      },
      "loc": Object {
        "start": Object {
          "line": 37,
          "column": 24,
        },
        "end": Object {
          "line": 39,
          "column": 1,
        },
      },
      "line": 37,
    },
    "5": Object {
      "name": "Bar",
      "decl": Object {
        "start": Object {
          "line": 43,
          "column": 15,
        },
        "end": Object {
          "line": 44,
          "column": 5,
        },
      },
      "loc": Object {
        "start": Object {
          "line": 43,
          "column": 15,
        },
        "end": Object {
          "line": 44,
          "column": 5,
        },
      },
      "line": 43,
    },
    "6": Object {
      "name": "hello",
      "decl": Object {
        "start": Object {
          "line": 47,
          "column": 5,
        },
        "end": Object {
          "line": 48,
          "column": 9,
        },
      },
      "loc": Object {
        "start": Object {
          "line": 47,
          "column": 5,
        },
        "end": Object {
          "line": 48,
          "column": 9,
        },
      },
      "line": 47,
    },
  },
  "f": Object {
    "0": 0,
    "1": 1,
    "2": 2,
    "3": 0,
    "4": 0,
    "5": 1,
    "6": 1,
  },
}
`

exports[`test/v8-to-istanbul.js TAP > must match snapshot 3`] = `
Object {
  "path": "./test/fixtures/scripts/mixed-newlines.js",
  "statementMap": Object {
    "0": Object {
      "start": Object {
        "line": 1,
        "column": 0,
      },
      "end": Object {
        "line": 1,
        "column": 3,
      },
    },
    "1": Object {
      "start": Object {
        "line": 2,
        "column": 0,
      },
      "end": Object {
        "line": 2,
        "column": 5,
      },
    },
    "2": Object {
      "start": Object {
        "line": 3,
        "column": 0,
      },
      "end": Object {
        "line": 3,
        "column": 1,
      },
    },
  },
  "s": Object {
    "0": 1,
    "1": 1,
    "2": 1,
  },
  "branchMap": Object {
    "0": Object {
      "type": "branch",
      "line": 1,
      "loc": Object {
        "start": Object {
          "line": 1,
          "column": 0,
        },
        "end": Object {
          "line": 3,
          "column": 1,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 1,
            "column": 0,
          },
          "end": Object {
            "line": 3,
            "column": 1,
          },
        },
      ],
    },
    "1": Object {
      "type": "branch",
      "line": 1,
      "loc": Object {
        "start": Object {
          "line": 1,
          "column": 1,
        },
        "end": Object {
          "line": 3,
          "column": 1,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 1,
            "column": 1,
          },
          "end": Object {
            "line": 3,
            "column": 1,
          },
        },
      ],
    },
  },
  "b": Object {
    "0": Array [
      1,
    ],
    "1": Array [
      1,
    ],
  },
  "fnMap": Object {},
  "f": Object {},
}
`

exports[`test/v8-to-istanbul.js TAP > must match snapshot 4`] = `
Object {
  "path": "./test/fixtures/scripts/shebang.js",
  "statementMap": Object {
    "0": Object {
      "start": Object {
        "line": 1,
        "column": 0,
      },
      "end": Object {
        "line": 1,
        "column": 19,
      },
    },
    "1": Object {
      "start": Object {
        "line": 2,
        "column": 0,
      },
      "end": Object {
        "line": 2,
        "column": 12,
      },
    },
    "2": Object {
      "start": Object {
        "line": 3,
        "column": 0,
      },
      "end": Object {
        "line": 3,
        "column": 0,
      },
    },
    "3": Object {
      "start": Object {
        "line": 4,
        "column": 0,
      },
      "end": Object {
        "line": 4,
        "column": 19,
      },
    },
    "4": Object {
      "start": Object {
        "line": 5,
        "column": 0,
      },
      "end": Object {
        "line": 5,
        "column": 25,
      },
    },
    "5": Object {
      "start": Object {
        "line": 6,
        "column": 0,
      },
      "end": Object {
        "line": 6,
        "column": 1,
      },
    },
    "6": Object {
      "start": Object {
        "line": 7,
        "column": 0,
      },
      "end": Object {
        "line": 7,
        "column": 0,
      },
    },
    "7": Object {
      "start": Object {
        "line": 8,
        "column": 0,
      },
      "end": Object {
        "line": 8,
        "column": 7,
      },
    },
  },
  "s": Object {
    "0": 1,
    "1": 1,
    "2": 1,
    "3": 1,
    "4": 1,
    "5": 1,
    "6": 1,
    "7": 1,
  },
  "branchMap": Object {
    "0": Object {
      "type": "branch",
      "line": 1,
      "loc": Object {
        "start": Object {
          "line": 1,
          "column": 19,
        },
        "end": Object {
          "line": 8,
          "column": 7,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 1,
            "column": 19,
          },
          "end": Object {
            "line": 8,
            "column": 7,
          },
        },
      ],
    },
    "1": Object {
      "type": "branch",
      "line": 2,
      "loc": Object {
        "start": Object {
          "line": 2,
          "column": 0,
        },
        "end": Object {
          "line": 8,
          "column": 7,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 2,
            "column": 0,
          },
          "end": Object {
            "line": 8,
            "column": 7,
          },
        },
      ],
    },
  },
  "b": Object {
    "0": Array [
      1,
    ],
    "1": Array [
      1,
    ],
  },
  "fnMap": Object {},
  "f": Object {},
}
`

exports[`test/v8-to-istanbul.js TAP > must match snapshot 5`] = `
Object {
  "path": "test/fixtures/scripts/branches.js",
  "statementMap": Object {
    "0": Object {
      "start": Object {
        "line": 1,
        "column": 0,
      },
      "end": Object {
        "line": 1,
        "column": 26,
      },
    },
    "1": Object {
      "start": Object {
        "line": 2,
        "column": 0,
      },
      "end": Object {
        "line": 2,
        "column": 18,
      },
    },
    "2": Object {
      "start": Object {
        "line": 3,
        "column": 0,
      },
      "end": Object {
        "line": 3,
        "column": 0,
      },
    },
    "3": Object {
      "start": Object {
        "line": 4,
        "column": 0,
      },
      "end": Object {
        "line": 4,
        "column": 31,
      },
    },
    "4": Object {
      "start": Object {
        "line": 5,
        "column": 0,
      },
      "end": Object {
        "line": 5,
        "column": 37,
      },
    },
    "5": Object {
      "start": Object {
        "line": 6,
        "column": 0,
      },
      "end": Object {
        "line": 6,
        "column": 0,
      },
    },
    "6": Object {
      "start": Object {
        "line": 7,
        "column": 0,
      },
      "end": Object {
        "line": 7,
        "column": 18,
      },
    },
    "7": Object {
      "start": Object {
        "line": 8,
        "column": 0,
      },
      "end": Object {
        "line": 8,
        "column": 31,
      },
    },
    "8": Object {
      "start": Object {
        "line": 9,
        "column": 0,
      },
      "end": Object {
        "line": 9,
        "column": 0,
      },
    },
    "9": Object {
      "start": Object {
        "line": 10,
        "column": 0,
      },
      "end": Object {
        "line": 10,
        "column": 16,
      },
    },
    "10": Object {
      "start": Object {
        "line": 11,
        "column": 0,
      },
      "end": Object {
        "line": 11,
        "column": 12,
      },
    },
    "11": Object {
      "start": Object {
        "line": 12,
        "column": 0,
      },
      "end": Object {
        "line": 12,
        "column": 14,
      },
    },
    "12": Object {
      "start": Object {
        "line": 13,
        "column": 0,
      },
      "end": Object {
        "line": 13,
        "column": 1,
      },
    },
    "13": Object {
      "start": Object {
        "line": 14,
        "column": 0,
      },
      "end": Object {
        "line": 14,
        "column": 8,
      },
    },
    "14": Object {
      "start": Object {
        "line": 15,
        "column": 0,
      },
      "end": Object {
        "line": 15,
        "column": 25,
      },
    },
    "15": Object {
      "start": Object {
        "line": 16,
        "column": 0,
      },
      "end": Object {
        "line": 16,
        "column": 3,
      },
    },
    "16": Object {
      "start": Object {
        "line": 17,
        "column": 0,
      },
      "end": Object {
        "line": 17,
        "column": 0,
      },
    },
    "17": Object {
      "start": Object {
        "line": 18,
        "column": 0,
      },
      "end": Object {
        "line": 18,
        "column": 28,
      },
    },
    "18": Object {
      "start": Object {
        "line": 19,
        "column": 0,
      },
      "end": Object {
        "line": 19,
        "column": 15,
      },
    },
    "19": Object {
      "start": Object {
        "line": 20,
        "column": 0,
      },
      "end": Object {
        "line": 20,
        "column": 13,
      },
    },
    "20": Object {
      "start": Object {
        "line": 21,
        "column": 0,
      },
      "end": Object {
        "line": 21,
        "column": 23,
      },
    },
    "21": Object {
      "start": Object {
        "line": 22,
        "column": 0,
      },
      "end": Object {
        "line": 22,
        "column": 10,
      },
    },
    "22": Object {
      "start": Object {
        "line": 23,
        "column": 0,
      },
      "end": Object {
        "line": 23,
        "column": 16,
      },
    },
    "23": Object {
      "start": Object {
        "line": 24,
        "column": 0,
      },
      "end": Object {
        "line": 24,
        "column": 3,
      },
    },
    "24": Object {
      "start": Object {
        "line": 25,
        "column": 0,
      },
      "end": Object {
        "line": 25,
        "column": 1,
      },
    },
    "25": Object {
      "start": Object {
        "line": 26,
        "column": 0,
      },
      "end": Object {
        "line": 26,
        "column": 0,
      },
    },
    "26": Object {
      "start": Object {
        "line": 27,
        "column": 0,
      },
      "end": Object {
        "line": 27,
        "column": 3,
      },
    },
    "27": Object {
      "start": Object {
        "line": 28,
        "column": 0,
      },
      "end": Object {
        "line": 28,
        "column": 0,
      },
    },
    "28": Object {
      "start": Object {
        "line": 29,
        "column": 0,
      },
      "end": Object {
        "line": 29,
        "column": 46,
      },
    },
    "29": Object {
      "start": Object {
        "line": 30,
        "column": 0,
      },
      "end": Object {
        "line": 30,
        "column": 15,
      },
    },
    "30": Object {
      "start": Object {
        "line": 31,
        "column": 0,
      },
      "end": Object {
        "line": 31,
        "column": 10,
      },
    },
  },
  "s": Object {
    "0": 0,
    "1": 1,
    "2": 1,
    "3": 1,
    "4": 1,
    "5": 1,
    "6": 1,
    "7": 1,
    "8": 1,
    "9": 1,
    "10": 1,
    "11": 1,
    "12": 1,
    "13": 1,
    "14": 0,
    "15": 0,
    "16": 0,
    "17": 0,
    "18": 1,
    "19": 1,
    "20": 1,
    "21": 1,
    "22": 1,
    "23": 1,
    "24": 1,
    "25": 1,
    "26": 1,
    "27": 1,
    "28": 0,
    "29": 1,
    "30": 1,
  },
  "branchMap": Object {
    "0": Object {
      "type": "branch",
      "line": 31,
      "loc": Object {
        "start": Object {
          "line": 31,
          "column": 10,
        },
        "end": Object {
          "line": 31,
          "column": 10,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 31,
            "column": 10,
          },
          "end": Object {
            "line": 31,
            "column": 10,
          },
        },
      ],
    },
    "1": Object {
      "type": "branch",
      "line": 5,
      "loc": Object {
        "start": Object {
          "line": 5,
          "column": 7,
        },
        "end": Object {
          "line": 5,
          "column": 18,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 5,
            "column": 7,
          },
          "end": Object {
            "line": 5,
            "column": 18,
          },
        },
      ],
    },
    "2": Object {
      "type": "branch",
      "line": 8,
      "loc": Object {
        "start": Object {
          "line": 8,
          "column": 0,
        },
        "end": Object {
          "line": 8,
          "column": 11,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 8,
            "column": 0,
          },
          "end": Object {
            "line": 8,
            "column": 11,
          },
        },
      ],
    },
    "3": Object {
      "type": "branch",
      "line": 11,
      "loc": Object {
        "start": Object {
          "line": 11,
          "column": 11,
        },
        "end": Object {
          "line": 12,
          "column": 12,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 11,
            "column": 11,
          },
          "end": Object {
            "line": 12,
            "column": 12,
          },
        },
      ],
    },
    "4": Object {
      "type": "branch",
      "line": 14,
      "loc": Object {
        "start": Object {
          "line": 14,
          "column": 7,
        },
        "end": Object {
          "line": 18,
          "column": 28,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 14,
            "column": 7,
          },
          "end": Object {
            "line": 18,
            "column": 28,
          },
        },
      ],
    },
    "5": Object {
      "type": "branch",
      "line": 31,
      "loc": Object {
        "start": Object {
          "line": 31,
          "column": 10,
        },
        "end": Object {
          "line": 31,
          "column": 10,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 31,
            "column": 10,
          },
          "end": Object {
            "line": 31,
            "column": 10,
          },
        },
      ],
    },
    "6": Object {
      "type": "branch",
      "line": 1,
      "loc": Object {
        "start": Object {
          "line": 1,
          "column": 0,
        },
        "end": Object {
          "line": 2,
          "column": 16,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 1,
            "column": 0,
          },
          "end": Object {
            "line": 2,
            "column": 16,
          },
        },
      ],
    },
    "7": Object {
      "type": "branch",
      "line": 1,
      "loc": Object {
        "start": Object {
          "line": 1,
          "column": 0,
        },
        "end": Object {
          "line": 2,
          "column": 6,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 1,
            "column": 0,
          },
          "end": Object {
            "line": 2,
            "column": 6,
          },
        },
      ],
    },
    "8": Object {
      "type": "branch",
      "line": 2,
      "loc": Object {
        "start": Object {
          "line": 2,
          "column": 0,
        },
        "end": Object {
          "line": 2,
          "column": 10,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 2,
            "column": 0,
          },
          "end": Object {
            "line": 2,
            "column": 10,
          },
        },
      ],
    },
    "9": Object {
      "type": "branch",
      "line": 20,
      "loc": Object {
        "start": Object {
          "line": 20,
          "column": 12,
        },
        "end": Object {
          "line": 30,
          "column": 10,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 20,
            "column": 12,
          },
          "end": Object {
            "line": 30,
            "column": 10,
          },
        },
      ],
    },
    "10": Object {
      "type": "branch",
      "line": 29,
      "loc": Object {
        "start": Object {
          "line": 29,
          "column": 0,
        },
        "end": Object {
          "line": 30,
          "column": 10,
        },
      },
      "locations": Array [
        Object {
          "start": Object {
            "line": 29,
            "column": 0,
          },
          "end": Object {
            "line": 30,
            "column": 10,
          },
        },
      ],
    },
  },
  "b": Object {
    "0": Array [
      1,
    ],
    "1": Array [
      0,
    ],
    "2": Array [
      0,
    ],
    "3": Array [
      0,
    ],
    "4": Array [
      0,
    ],
    "5": Array [
      0,
    ],
    "6": Array [
      1,
    ],
    "7": Array [
      0,
    ],
    "8": Array [
      0,
    ],
    "9": Array [
      1,
    ],
    "10": Array [
      0,
    ],
  },
  "fnMap": Object {
    "0": Object {
      "name": "e",
      "decl": Object {
        "start": Object {
          "line": 20,
          "column": 12,
        },
        "end": Object {
          "line": 30,
          "column": 10,
        },
      },
      "loc": Object {
        "start": Object {
          "line": 20,
          "column": 12,
        },
        "end": Object {
          "line": 30,
          "column": 10,
        },
      },
      "line": 20,
    },
  },
  "f": Object {
    "0": 1,
  },
}
`