f1-2019-results / desktop-client

0 stars 0 forks source link

Flaky code coverage #3

Closed FINDarkside closed 4 years ago

FINDarkside commented 4 years ago

About 50% everything works fine, but the other 50% time coverage of src/binaryParser/index.ts is only 73.33% (11/15 lines) and opening html report for the while shows the following eror:

Cannot read property 'start' of undefined
TypeError: Cannot read property 'start' of undefined
    at C:\Users\FINDarkside\Ohjelmointi\tobenamed\desktop-client\node_modules\istanbul-reports\lib\html\annotator.js:53:31
    at Array.forEach ()
    at annotateStatements (C:\Users\FINDarkside\Ohjelmointi\tobenamed\desktop-client\node_modules\istanbul-reports\lib\html\annotator.js:49:33)
    at Object.annotateSourceCode (C:\Users\FINDarkside\Ohjelmointi\tobenamed\desktop-client\node_modules\istanbul-reports\lib\html\annotator.js:239:9)
    at HtmlReport.onDetail (C:\Users\FINDarkside\Ohjelmointi\tobenamed\desktop-client\node_modules\istanbul-reports\lib\html\index.js:265:27)
    at Visitor. [as onDetail] (C:\Users\FINDarkside\Ohjelmointi\tobenamed\desktop-client\node_modules\istanbul-lib-report\lib\tree.js:34:30)
    at ReportNode.Node.visit (C:\Users\FINDarkside\Ohjelmointi\tobenamed\desktop-client\node_modules\istanbul-lib-report\lib\tree.js:114:17)
    at C:\Users\FINDarkside\Ohjelmointi\tobenamed\desktop-client\node_modules\istanbul-lib-report\lib\tree.js:118:15
    at Array.forEach ()
    at ReportNode.Node.visit (C:\Users\FINDarkside\Ohjelmointi\tobenamed\desktop-client\node_modules\istanbul-lib-report\lib\tree.js:117:24)
--

73.33% coverage wouldn't be possible anyway, as the file simply exports some stuff.