Skip to content

Instantly share code, notes, and snippets.

@atroche
Created June 1, 2019 03:53
Show Gist options
  • Save atroche/7380cd8f5da1f366d3f71696b62ee7a7 to your computer and use it in GitHub Desktop.
Save atroche/7380cd8f5da1f366d3f71696b62ee7a7 to your computer and use it in GitHub Desktop.
The 'Script Coverage's returned by Chrome after the initial load of our 'Basic Page' fixture
[
{
"scriptId": "11",
"url": "http://127.0.0.1:42595/coverage_fixture1.js",
"functions": [
{
"functionName": "",
"ranges": [
{
"startOffset": 0,
"endOffset": 339,
"count": 1
}
]
},
{
"functionName": "window.onload",
"ranges": [
{
"startOffset": 16,
"endOffset": 53,
"count": 1
}
]
},
{
"functionName": "button.onclick",
"ranges": [
{
"startOffset": 125,
"endOffset": 163,
"count": 0
}
]
},
{
"functionName": "blah",
"ranges": [
{
"startOffset": 166,
"endOffset": 329,
"count": 1
},
{
"startOffset": 221,
"endOffset": 327,
"count": 0
}
]
}
]
},
{
"scriptId": "12",
"url": "http://127.0.0.1:42595/coverage_fixture2.js",
"functions": [
{
"functionName": "",
"ranges": [
{
"startOffset": 0,
"endOffset": 37,
"count": 1
}
]
},
{
"functionName": "thisIsNeverExecuted",
"ranges": [
{
"startOffset": 0,
"endOffset": 35,
"count": 0
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment