Skip to content

Instantly share code, notes, and snippets.

@atroche
Created June 1, 2019 03:43
Show Gist options
  • Save atroche/3094cc1ddc5a6db44cf120862f88c1f0 to your computer and use it in GitHub Desktop.
Save atroche/3094cc1ddc5a6db44cf120862f88c1f0 to your computer and use it in GitHub Desktop.
The 'Script Coverage's returned by Chrome after the initial load of TodoMVC on localhost
[
{
"scriptId": "11",
"url": "http://127.0.0.1:34949/js/helpers.js",
"functions": [
{
"functionName": "",
"ranges": [
{
"startOffset": 0,
"endOffset": 1600,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 22,
"endOffset": 1589,
"count": 1
}
]
},
{
"functionName": "window.qs",
"ranges": [
{
"startOffset": 107,
"endOffset": 192,
"count": 9
}
]
},
{
"functionName": "window.qsa",
"ranges": [
{
"startOffset": 208,
"endOffset": 296,
"count": 0
}
]
},
{
"functionName": "window.$on",
"ranges": [
{
"startOffset": 343,
"endOffset": 450,
"count": 11
}
]
},
{
"functionName": "window.$delegate",
"ranges": [
{
"startOffset": 595,
"endOffset": 1101,
"count": 6
},
{
"startOffset": 1022,
"endOffset": 1041,
"count": 5
}
]
},
{
"functionName": "dispatchEvent",
"ranges": [
{
"startOffset": 642,
"endOffset": 923,
"count": 0
}
]
},
{
"functionName": "window.$parent",
"ranges": [
{
"startOffset": 1206,
"endOffset": 1446,
"count": 0
}
]
}
]
},
{
"scriptId": "12",
"url": "http://127.0.0.1:34949/js/store.js",
"functions": [
{
"functionName": "",
"ranges": [
{
"startOffset": 0,
"endOffset": 3707,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 26,
"endOffset": 3696,
"count": 1
}
]
},
{
"functionName": "Store",
"ranges": [
{
"startOffset": 377,
"endOffset": 657,
"count": 1
}
]
},
{
"functionName": "Store.callback",
"ranges": [
{
"startOffset": 435,
"endOffset": 449,
"count": 1
}
]
},
{
"functionName": "Store.find",
"ranges": [
{
"startOffset": 1102,
"endOffset": 1395,
"count": 0
}
]
},
{
"functionName": "Store.findAll",
"ranges": [
{
"startOffset": 1559,
"endOffset": 1695,
"count": 2
},
{
"startOffset": 1603,
"endOffset": 1620,
"count": 0
}
]
},
{
"functionName": "callback",
"ranges": [
{
"startOffset": 1606,
"endOffset": 1620,
"count": 0
}
]
},
{
"functionName": "Store.save",
"ranges": [
{
"startOffset": 2092,
"endOffset": 2798,
"count": 0
}
]
},
{
"functionName": "Store.remove",
"ranges": [
{
"startOffset": 3022,
"endOffset": 3320,
"count": 0
}
]
},
{
"functionName": "Store.drop",
"ranges": [
{
"startOffset": 3479,
"endOffset": 3612,
"count": 0
}
]
}
]
},
{
"scriptId": "13",
"url": "http://127.0.0.1:34949/js/model.js",
"functions": [
{
"functionName": "",
"ranges": [
{
"startOffset": 0,
"endOffset": 3160,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 1,
"endOffset": 3149,
"count": 1
},
{
"startOffset": 3114,
"endOffset": 3119,
"count": 0
}
]
},
{
"functionName": "Model",
"ranges": [
{
"startOffset": 201,
"endOffset": 255,
"count": 1
}
]
},
{
"functionName": "Model.create",
"ranges": [
{
"startOffset": 457,
"endOffset": 661,
"count": 0
}
]
},
{
"functionName": "Model.read",
"ranges": [
{
"startOffset": 1346,
"endOffset": 1746,
"count": 1
},
{
"startOffset": 1549,
"endOffset": 1743,
"count": 0
}
]
},
{
"functionName": "callback",
"ranges": [
{
"startOffset": 1432,
"endOffset": 1446,
"count": 0
}
]
},
{
"functionName": "Model.update",
"ranges": [
{
"startOffset": 2105,
"endOffset": 2180,
"count": 0
}
]
},
{
"functionName": "Model.remove",
"ranges": [
{
"startOffset": 2391,
"endOffset": 2456,
"count": 0
}
]
},
{
"functionName": "Model.removeAll",
"ranges": [
{
"startOffset": 2629,
"endOffset": 2684,
"count": 0
}
]
},
{
"functionName": "Model.getCount",
"ranges": [
{
"startOffset": 2758,
"endOffset": 3065,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 2868,
"endOffset": 3060,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 2902,
"endOffset": 3034,
"count": 0
}
]
}
]
},
{
"scriptId": "14",
"url": "http://127.0.0.1:34949/js/template.js",
"functions": [
{
"functionName": "",
"ranges": [
{
"startOffset": 0,
"endOffset": 2812,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 27,
"endOffset": 2801,
"count": 1
},
{
"startOffset": 2760,
"endOffset": 2765,
"count": 0
}
]
},
{
"functionName": "escapeHtmlChar",
"ranges": [
{
"startOffset": 208,
"endOffset": 254,
"count": 0
}
]
},
{
"functionName": "escape",
"ranges": [
{
"startOffset": 370,
"endOffset": 511,
"count": 0
}
]
},
{
"functionName": "Template",
"ranges": [
{
"startOffset": 623,
"endOffset": 907,
"count": 1
}
]
},
{
"functionName": "Template.show",
"ranges": [
{
"startOffset": 1437,
"endOffset": 1991,
"count": 1
},
{
"startOffset": 1528,
"endOffset": 1972,
"count": 0
}
]
},
{
"functionName": "Template.itemCounter",
"ranges": [
{
"startOffset": 2215,
"endOffset": 2361,
"count": 1
},
{
"startOffset": 2273,
"endOffset": 2277,
"count": 0
}
]
},
{
"functionName": "Template.clearCompletedButton",
"ranges": [
{
"startOffset": 2595,
"endOffset": 2711,
"count": 1
},
{
"startOffset": 2649,
"endOffset": 2683,
"count": 0
}
]
}
]
},
{
"scriptId": "15",
"url": "http://127.0.0.1:34949/js/view.js",
"functions": [
{
"functionName": "",
"ranges": [
{
"startOffset": 0,
"endOffset": 5680,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 47,
"endOffset": 5669,
"count": 1
},
{
"startOffset": 5636,
"endOffset": 5641,
"count": 0
}
]
},
{
"functionName": "View",
"ranges": [
{
"startOffset": 415,
"endOffset": 785,
"count": 1
}
]
},
{
"functionName": "View._removeItem",
"ranges": [
{
"startOffset": 817,
"endOffset": 934,
"count": 0
}
]
},
{
"functionName": "View._clearCompletedButton",
"ranges": [
{
"startOffset": 977,
"endOffset": 1170,
"count": 1
},
{
"startOffset": 1148,
"endOffset": 1157,
"count": 0
}
]
},
{
"functionName": "View._setFilter",
"ranges": [
{
"startOffset": 1202,
"endOffset": 1344,
"count": 1
}
]
},
{
"functionName": "View._elementComplete",
"ranges": [
{
"startOffset": 1382,
"endOffset": 1668,
"count": 0
}
]
},
{
"functionName": "View._editItem",
"ranges": [
{
"startOffset": 1699,
"endOffset": 2011,
"count": 0
}
]
},
{
"functionName": "View._editItemDone",
"ranges": [
{
"startOffset": 2046,
"endOffset": 2383,
"count": 0
}
]
},
{
"functionName": "View.render",
"ranges": [
{
"startOffset": 2411,
"endOffset": 3560,
"count": 6
}
]
},
{
"functionName": "showEntries",
"ranges": [
{
"startOffset": 2501,
"endOffset": 2581,
"count": 1
}
]
},
{
"functionName": "removeItem",
"ranges": [
{
"startOffset": 2598,
"endOffset": 2649,
"count": 0
}
]
},
{
"functionName": "updateElementCount",
"ranges": [
{
"startOffset": 2674,
"endOffset": 2768,
"count": 1
}
]
},
{
"functionName": "clearCompletedButton",
"ranges": [
{
"startOffset": 2795,
"endOffset": 2885,
"count": 1
}
]
},
{
"functionName": "contentBlockVisibility",
"ranges": [
{
"startOffset": 2914,
"endOffset": 3030,
"count": 1
},
{
"startOffset": 3006,
"endOffset": 3015,
"count": 0
}
]
},
{
"functionName": "toggleAll",
"ranges": [
{
"startOffset": 3046,
"endOffset": 3113,
"count": 1
}
]
},
{
"functionName": "setFilter",
"ranges": [
{
"startOffset": 3129,
"endOffset": 3179,
"count": 1
}
]
},
{
"functionName": "clearNewTodo",
"ranges": [
{
"startOffset": 3198,
"endOffset": 3246,
"count": 0
}
]
},
{
"functionName": "elementComplete",
"ranges": [
{
"startOffset": 3268,
"endOffset": 3348,
"count": 0
}
]
},
{
"functionName": "editItem",
"ranges": [
{
"startOffset": 3363,
"endOffset": 3432,
"count": 0
}
]
},
{
"functionName": "editItemDone",
"ranges": [
{
"startOffset": 3451,
"endOffset": 3524,
"count": 0
}
]
},
{
"functionName": "View._itemId",
"ranges": [
{
"startOffset": 3589,
"endOffset": 3685,
"count": 0
}
]
},
{
"functionName": "View._bindItemEditDone",
"ranges": [
{
"startOffset": 3724,
"endOffset": 4190,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 3812,
"endOffset": 3943,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 3999,
"endOffset": 4185,
"count": 0
}
]
},
{
"functionName": "View._bindItemEditCancel",
"ranges": [
{
"startOffset": 4231,
"endOffset": 4489,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 4320,
"endOffset": 4484,
"count": 0
}
]
},
{
"functionName": "View.bind",
"ranges": [
{
"startOffset": 4515,
"endOffset": 5587,
"count": 8
},
{
"startOffset": 4589,
"endOffset": 4682,
"count": 1
},
{
"startOffset": 4682,
"endOffset": 5584,
"count": 7
},
{
"startOffset": 4721,
"endOffset": 4801,
"count": 1
},
{
"startOffset": 4801,
"endOffset": 5584,
"count": 6
},
{
"startOffset": 4834,
"endOffset": 4934,
"count": 1
},
{
"startOffset": 4934,
"endOffset": 5584,
"count": 5
},
{
"startOffset": 4966,
"endOffset": 5085,
"count": 1
},
{
"startOffset": 5085,
"endOffset": 5584,
"count": 4
},
{
"startOffset": 5119,
"endOffset": 5235,
"count": 1
},
{
"startOffset": 5235,
"endOffset": 5584,
"count": 3
},
{
"startOffset": 5269,
"endOffset": 5425,
"count": 1
},
{
"startOffset": 5425,
"endOffset": 5584,
"count": 2
},
{
"startOffset": 5461,
"endOffset": 5584,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 4623,
"endOffset": 4675,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 4761,
"endOffset": 4794,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 4869,
"endOffset": 4927,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 5021,
"endOffset": 5078,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 5171,
"endOffset": 5228,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 5320,
"endOffset": 5418,
"count": 0
}
]
}
]
},
{
"scriptId": "16",
"url": "http://127.0.0.1:34949/js/controller.js",
"functions": [
{
"functionName": "",
"ranges": [
{
"startOffset": 0,
"endOffset": 6796,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 1,
"endOffset": 6785,
"count": 1
},
{
"startOffset": 6740,
"endOffset": 6745,
"count": 0
}
]
},
{
"functionName": "Controller",
"ranges": [
{
"startOffset": 224,
"endOffset": 1048,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 349,
"endOffset": 395,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 428,
"endOffset": 476,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 513,
"endOffset": 577,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 616,
"endOffset": 670,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 705,
"endOffset": 755,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 790,
"endOffset": 860,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 900,
"endOffset": 949,
"count": 0
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 983,
"endOffset": 1043,
"count": 0
}
]
},
{
"functionName": "Controller.setView",
"ranges": [
{
"startOffset": 1179,
"endOffset": 1308,
"count": 1
}
]
},
{
"functionName": "Controller.showAll",
"ranges": [
{
"startOffset": 1440,
"endOffset": 1559,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 1491,
"endOffset": 1554,
"count": 1
}
]
},
{
"functionName": "Controller.showActive",
"ranges": [
{
"startOffset": 1636,
"endOffset": 1777,
"count": 0
}
]
},
{
"functionName": "Controller.showCompleted",
"ranges": [
{
"startOffset": 1860,
"endOffset": 2000,
"count": 0
}
]
},
{
"functionName": "Controller.addItem",
"ranges": [
{
"startOffset": 2199,
"endOffset": 2392,
"count": 0
}
]
},
{
"functionName": "Controller.editItem",
"ranges": [
{
"startOffset": 2473,
"endOffset": 2621,
"count": 0
}
]
},
{
"functionName": "Controller.editItemSave",
"ranges": [
{
"startOffset": 2719,
"endOffset": 2979,
"count": 0
}
]
},
{
"functionName": "Controller.editItemCancel",
"ranges": [
{
"startOffset": 3065,
"endOffset": 3217,
"count": 0
}
]
},
{
"functionName": "Controller.removeItem",
"ranges": [
{
"startOffset": 3478,
"endOffset": 3617,
"count": 0
}
]
},
{
"functionName": "Controller.removeCompletedItems",
"ranges": [
{
"startOffset": 3737,
"endOffset": 3925,
"count": 0
}
]
},
{
"functionName": "Controller.toggleComplete",
"ranges": [
{
"startOffset": 4353,
"endOffset": 4605,
"count": 0
}
]
},
{
"functionName": "Controller.toggleAll",
"ranges": [
{
"startOffset": 4760,
"endOffset": 4984,
"count": 0
}
]
},
{
"functionName": "Controller._updateCount",
"ranges": [
{
"startOffset": 5130,
"endOffset": 5541,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 5185,
"endOffset": 5536,
"count": 1
}
]
},
{
"functionName": "Controller._filter",
"ranges": [
{
"startOffset": 5718,
"endOffset": 6264,
"count": 1
},
{
"startOffset": 6141,
"endOffset": 6181,
"count": 0
}
]
},
{
"functionName": "Controller._updateFilterState",
"ranges": [
{
"startOffset": 6372,
"endOffset": 6691,
"count": 1
}
]
}
]
},
{
"scriptId": "17",
"url": "http://127.0.0.1:34949/js/app.js",
"functions": [
{
"functionName": "",
"ranges": [
{
"startOffset": 0,
"endOffset": 604,
"count": 1
}
]
},
{
"functionName": "",
"ranges": [
{
"startOffset": 22,
"endOffset": 599,
"count": 1
}
]
},
{
"functionName": "Todo",
"ranges": [
{
"startOffset": 160,
"endOffset": 410,
"count": 1
}
]
},
{
"functionName": "setView",
"ranges": [
{
"startOffset": 455,
"endOffset": 529,
"count": 1
}
]
}
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment