external-instrumenter.js 2.1 KB

12
  1. 'use strict';var cov_2lihypprau=function(){var path='./external-instrumenter.js',hash='94882d734989e453feb86be8e04d02c7d53a37db',global=new Function('return this')(),gcv='__coverage__',coverageData={path:'./external-instrumenter.js',statementMap:{'0':{start:{line:5,column:4},end:{line:5,column:22}},'1':{start:{line:9,column:4},end:{line:9,column:29}},'2':{start:{line:10,column:15},end:{line:12,column:5}},'3':{start:{line:11,column:6},end:{line:11,column:31}},'4':{start:{line:16,column:15},end:{line:18,column:5}},'5':{start:{line:17,column:6},end:{line:17,column:31}},'6':{start:{line:22,column:8},end:{line:22,column:20}},'7':{start:{line:23,column:0},end:{line:23,column:7}}},fnMap:{'0':{name:'(anonymous_0)',decl:{start:{line:4,column:2},end:{line:4,column:3}},loc:{start:{line:4,column:16},end:{line:6,column:3}}},'1':{name:'(anonymous_1)',decl:{start:{line:8,column:2},end:{line:8,column:3}},loc:{start:{line:8,column:8},end:{line:13,column:3}}},'2':{name:'(anonymous_2)',decl:{start:{line:10,column:15},end:{line:10,column:16}},loc:{start:{line:10,column:21},end:{line:12,column:5}}},'3':{name:'(anonymous_3)',decl:{start:{line:15,column:2},end:{line:15,column:3}},loc:{start:{line:15,column:9},end:{line:19,column:3}}},'4':{name:'(anonymous_4)',decl:{start:{line:16,column:15},end:{line:16,column:16}},loc:{start:{line:16,column:21},end:{line:18,column:5}}}},branchMap:{},s:{'0':0,'1':0,'2':0,'3':0,'4':0,'5':0,'6':0,'7':0},f:{'0':0,'1':0,'2':0,'3':0,'4':0},b:{},_coverageSchema:'d34fc3e6b8297bcde183f5492bcb8fcb36775295'},coverage=global[gcv]||(global[gcv]={});if(coverage[path]&&coverage[path].hash===hash){return coverage[path];}coverageData.hash=hash;return coverage[path]=coverageData;}();class Yarsay{constructor(){++cov_2lihypprau.f[0];++cov_2lihypprau.s[0];console.log('sup');}hit(){++cov_2lihypprau.f[1];++cov_2lihypprau.s[1];console.log('do not hit');let miss=(++cov_2lihypprau.s[2],()=>{++cov_2lihypprau.f[2];++cov_2lihypprau.s[3];console.log('do not hit');});}miss(){++cov_2lihypprau.f[3];let miss=(++cov_2lihypprau.s[4],()=>{++cov_2lihypprau.f[4];++cov_2lihypprau.s[5];console.log('do not hit');});}}let y=(++cov_2lihypprau.s[6],new Yarsay());++cov_2lihypprau.s[7];y.hit();