Liam Appelbe
Liam Appelbe
@tejasd are you able to reproduce it with the code Brian posted above? I've been consistently reproing it with that code. Specifically, it only hits the line `NSLog(@"repro: Delegate method...
Oops, I guess I missed this bug. @acn-masatadakurihara The original post mentions two issues. Which are you running into? > 1. There are failing branch coverage for the two const...
The way coverage collection works for const constructors is a bit of a hack. After ordinary coverage collection is complete and all ordinary source ranges have been added to the...
@vvs-personalstash The changes needed to fix this bug are in the Dart VM, not this repo. You probably don't want to try and dive into the VM repo just yet...
The current approach also has a bug where calls inside the const constructor are not hit. For example, if we move the `super()` call to the next line, it's counted...
More context: https://github.com/flutter/flutter/issues/108313#issuecomment-1578280358 Branch coverage is the +/- symbols on the left, and line coverage is the hilited lines:  The lcov.info for this looks like: ``` ... DA:18,1 DA:22,1...
@Victowolf this bug can't be fixed purely in package:coverage. Most of the changes I mentioned in my comment above are in the Dart VM. Specifically, the most important change would...
@JeanPSF I can't reproduce this based on just these small code snippets. Can you give me more context, or better yet, post a minimal repro program?
What about the code under test? What is `userAPI`? Where are the `UserPreferences` and `UserPreferencesMock` defined? What `Http` class are you using? In your original post, the code that isn't...
Sounds like your working directory incorrect. What directory are you in when you run the command? I'm not familiar with fvm (heard of it, but never used it). Maybe it...