-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add java code sample for tests #34
Add java code sample for tests #34
Conversation
amoghrajesh
commented
Oct 4, 2022
- Added a java file with some code logic
- Updated the tests in analyzer and scanner
@JoaoDanielRufino can you help with a review? I think a UT is failing btw. Not sure why though |
@JoaoDanielRufino i have refactored the code a bit because the tests were doing an index wise comparison which is not the best style and is not extendable too. I have done some refactoring around that end |
Co-authored-by: João Daniel Rufino <[email protected]>
Co-authored-by: João Daniel Rufino <[email protected]>
pkg/scanner/scanner_test.go
Outdated
Lines: 20, | ||
CodeLines: 15, | ||
BlankLines: 4, | ||
Comments: 4, |
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.
The expected values are incorrect, please run the test and verify if the suggested value is correct
Lines: 20, | |
CodeLines: 15, | |
BlankLines: 4, | |
Comments: 4, | |
Lines: 24, | |
CodeLines: 15, | |
BlankLines: 5, | |
Comments: 4, |
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.
Ah good catch. Had missed it due to rebasing