flutterdartcode-coveragetest-coveragecodecov

how to ignore a line in `dart-lang/coverage`


use case

codecov sees super as in need for test,

enter image description here

not sure being sure if writing a test for this keyword

I'd like to exclude the line from coverage until my doubts are cleared

question

how do I ignore a line in dart-lang/coverage


Solution

  • I see this. Not perfect, but a solution

    // coverage:ignore-line to ignore one line.
    // coverage:ignore-start and // coverage:ignore-end to ignore range of lines inclusive.
    // coverage:ignore-file to ignore the whole file.