-
Notifications
You must be signed in to change notification settings - Fork 330
Repair the support for Test with Coverage #8007
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Repair the support for Test with Coverage #8007
Conversation
If successful, this will resolve flutter#7810 Delay is due to Gradle IJ (upstream IJ platform) issues, this work was blocked until this was resolved: flutter#7936
@@ -0,0 +1,58 @@ | |||
/* | |||
* Copyright 2021 The Chromium Authors. All rights reserved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be 2025? (Similarly for the other new files?)
return roots.toArray(VirtualFile.EMPTY_ARRAY); | ||
}); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe add a trailing newline here and below?
final String filePath = file.getAbsolutePath(); | ||
final int index = filePath.indexOf("coverage"); | ||
if (index < 0) { | ||
// TODO Define at least one class in data |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it standard to include a username?
addLineCount(line.substring(DATA_LABEL.length())); | ||
} | ||
else if (line.startsWith(FILE_LABEL)) { | ||
//currentFile = Paths.get(line.substring(FILE_LABEL.length())).normalize(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe remove the commented code?
} | ||
catch (NumberFormatException ex) { | ||
return 0; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aside: surprising that there isn't some kind of "safe" parseInt
...
If successful, this will resolve #7810
Delay is due to Gradle IJ (upstream IJ platform) issues, this work was blocked until this was resolved: #7936