istanbuljs / nyc

the Istanbul command line interface
https://istanbul.js.org/
ISC License
5.6k stars 359 forks source link

nyc report internal local function uncovered #1431

Open Zvicii opened 3 years ago

Zvicii commented 3 years ago

I'm new to nyc, so I apologize if I asked a dumb question. I'm using nyc to get a coverage report from my mocha test.

//I run this:
nyc --reporter=lcov mocha test/test_all.js -slow 200 -timeout 10000

and I get this result image from my understanding, 'fire' is a local function, should not be counted into the report. if I remove the 'fire' function, then it works fine. please help, many thanks.

sschneider-ihre-pvs commented 3 years ago

Similar problem image