Skip to content
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

Java nom metrics #823

Merged
merged 3 commits into from
Apr 14, 2022

Conversation

dburriss
Copy link
Contributor

Adds LambdaExpression to the Checker is_closure and adds a test for Java nom metric.

image

@dburriss dburriss force-pushed the dburriss/feature/issue-359/java-nom branch from b0de32c to 13a21e8 Compare April 14, 2022 15:09
marco-c
marco-c previously approved these changes Apr 14, 2022
Copy link
Collaborator

@marco-c marco-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me. Could you also add a smaller test like cpp_nom in addition to the one you already added?

@dburriss
Copy link
Contributor Author

Makes sense to me. Could you also add a smaller test like cpp_nom in addition to the one you already added?

Yeah... turns out lambdas in Java are really ugly :)

@@ -123,6 +123,7 @@ impl Stats {
/// Returns the average number of function definitions over all spaces
#[inline(always)]
pub fn functions_average(&self) -> f64 {
println!("SPACE {}", self.space_count);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove the debugging statement ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bah! Forgot about it. Done.

@codecov-commenter
Copy link

Codecov Report

Merging #823 (b8ab86c) into master (d24a558) will increase coverage by 0.10%.
The diff coverage is 84.61%.

@@            Coverage Diff             @@
##           master     #823      +/-   ##
==========================================
+ Coverage   40.92%   41.03%   +0.10%     
==========================================
  Files          51       51              
  Lines        7088     7101      +13     
  Branches     1011     1013       +2     
==========================================
+ Hits         2901     2914      +13     
+ Misses       3486     3485       -1     
- Partials      701      702       +1     
Impacted Files Coverage Δ
src/checker.rs 72.50% <ø> (ø)
src/metrics/nom.rs 73.78% <84.61%> (+0.72%) ⬆️
src/getter.rs 75.51% <0.00%> (+0.82%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d24a558...b8ab86c. Read the comment docs.

@dburriss dburriss requested a review from marco-c April 14, 2022 17:22
Copy link
Collaborator

@marco-c marco-c left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@marco-c marco-c merged commit 7b9d158 into mozilla:master Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants