Coverage test issue
This project is made to test the 'ignore' flag on private class constructor in codecov.io analysis.
- Base case - run without ignore
- Run with ignore using: // coverage:ignore-line - on the line
- Run with ignore using: // coverage:ignore-line - before the line
- Run with ignore using: // coverage:ignore-line - on and before the line
- Run with enclosing ignore using: // coverage:ignore-start and // coverage:ignore-end
- Run with ignore using: // coverage:ignore-line - on the line, but with some // comment on the line above it.
The "ignore" did not work in Dart/Flutter before Flutter 2.5.0, but in Flutter 2.5.0 and later release it seem to work as follows. The untestable and in test code unreachable line:
AppConst._();
Is reported as follows:
- Reported as not tested => OK!
- Ignore after line => Ignored => OK!
- Before the line, like a lint ignore => Not ignored => FAIL! Should it work?
- Before and on the line => Ignored => OK!
- Enclosed with ignore => Ignored => OK!
- Ignore after line, but some comment above => Ignored => OK!