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

Add java code sample for tests #34

Merged
merged 11 commits into from
Oct 5, 2022

Conversation

amoghrajesh
Copy link
Contributor

  • Added a java file with some code logic
  • Updated the tests in analyzer and scanner

@amoghrajesh
Copy link
Contributor Author

@JoaoDanielRufino can you help with a review? I think a UT is failing btw. Not sure why though

@amoghrajesh
Copy link
Contributor Author

@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

@JoaoDanielRufino JoaoDanielRufino linked an issue Oct 4, 2022 that may be closed by this pull request
pkg/analyzer/analyzer_test.go Outdated Show resolved Hide resolved
pkg/scanner/scanner_test.go Outdated Show resolved Hide resolved
test/fixtures/code_samples/_main.java Show resolved Hide resolved
pkg/scanner/scanner_test.go Outdated Show resolved Hide resolved
Co-authored-by: João Daniel Rufino <[email protected]>
Comment on lines 47 to 50
Lines: 20,
CodeLines: 15,
BlankLines: 4,
Comments: 4,
Copy link
Owner

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

Suggested change
Lines: 20,
CodeLines: 15,
BlankLines: 4,
Comments: 4,
Lines: 24,
CodeLines: 15,
BlankLines: 5,
Comments: 4,

Copy link
Contributor Author

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

@JoaoDanielRufino JoaoDanielRufino merged commit 268bf71 into JoaoDanielRufino:master Oct 5, 2022
@JoaoDanielRufino JoaoDanielRufino added the hacktoberfest-accepted Hacktoberfest accepted pull request label Oct 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted Hacktoberfest accepted pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add java code sample for tests
2 participants