oxc_coverage_instrument 0.3.13

Istanbul-compatible JavaScript/TypeScript coverage instrumentation using the Oxc AST
Documentation
{
  "path": "09-switch-cases.js",
  "statements": 5,
  "functions": 1,
  "branches": 1,
  "statementMap": {
    "0": {
      "start": {
        "line": 2,
        "column": 2
      },
      "end": {
        "line": 11,
        "column": 3
      }
    },
    "1": {
      "start": {
        "line": 4,
        "column": 6
      },
      "end": {
        "line": 4,
        "column": 19
      }
    },
    "2": {
      "start": {
        "line": 6,
        "column": 6
      },
      "end": {
        "line": 6,
        "column": 19
      }
    },
    "3": {
      "start": {
        "line": 8,
        "column": 6
      },
      "end": {
        "line": 8,
        "column": 21
      }
    },
    "4": {
      "start": {
        "line": 10,
        "column": 6
      },
      "end": {
        "line": 10,
        "column": 21
      }
    }
  },
  "fnMap": {
    "0": {
      "name": "f",
      "line": 1,
      "decl": {
        "start": {
          "line": 1,
          "column": 9
        },
        "end": {
          "line": 1,
          "column": 10
        }
      },
      "loc": {
        "start": {
          "line": 1,
          "column": 14
        },
        "end": {
          "line": 12,
          "column": 1
        }
      }
    }
  },
  "branchMap": {
    "0": {
      "type": "switch",
      "line": 2,
      "loc": {
        "start": {
          "line": 2,
          "column": 2
        },
        "end": {
          "line": 11,
          "column": 3
        }
      },
      "locations": [
        {
          "start": {
            "line": 3,
            "column": 4
          },
          "end": {
            "line": 4,
            "column": 19
          }
        },
        {
          "start": {
            "line": 5,
            "column": 4
          },
          "end": {
            "line": 6,
            "column": 19
          }
        },
        {
          "start": {
            "line": 7,
            "column": 4
          },
          "end": {
            "line": 8,
            "column": 21
          }
        },
        {
          "start": {
            "line": 9,
            "column": 4
          },
          "end": {
            "line": 10,
            "column": 21
          }
        }
      ],
      "locationCount": 4
    }
  },
  "s": {
    "0": 0,
    "1": 0,
    "2": 0,
    "3": 0,
    "4": 0
  },
  "f": {
    "0": 0
  },
  "b": {
    "0": [
      0,
      0,
      0,
      0
    ]
  }
}