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

Remove unused local variables from test files #6940

Merged
merged 2 commits into from
Jan 5, 2025

Conversation

pethers
Copy link
Member

@pethers pethers commented Jan 5, 2025

Remove unused local variables from test files.

  • Remove the unused local variable applicationSession from the loadTest, persistTest, mergeTest, findFirstByPropertyTest, findListByPropertyTest, findListByPropertyInListTest, getAllTest, getPageTest, and getPageOrderByTest methods in service.data.impl/src/test/java/com/hack23/cia/service/data/impl/ApplicationSessionDAOITest.java.
  • Remove the unused local variable riksdagenDateUtil from the tryToFindValidVoteDateListExistSameDateSuccess, tryToFindValidVoteDateListExistDifferentDateSuccess, tryToFindValidVoteDateBallotCreatedDayExistSuccess, tryToFindValidVoteDateBallotCreatedDayInvalidFallbackToSystemDateExistSuccess, tryToFindValidVoteDateBallotPublicDateExistSuccess, tryToFindValidVoteDateSystemDateExistSuccess, and tryToFindValidVoteDateSystemDateInvalidFallbackToPublicDateExistSuccess methods in service.external.riksdagen/src/test/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDateUtilTest.java.

For more details, open the Copilot Workspace session.

Remove unused local variables from test files.

* Remove the unused local variable `applicationSession` from the `loadTest`, `persistTest`, `mergeTest`, `findFirstByPropertyTest`, `findListByPropertyTest`, `findListByPropertyInListTest`, `getAllTest`, `getPageTest`, and `getPageOrderByTest` methods in `service.data.impl/src/test/java/com/hack23/cia/service/data/impl/ApplicationSessionDAOITest.java`.
* Remove the unused local variable `riksdagenDateUtil` from the `tryToFindValidVoteDateListExistSameDateSuccess`, `tryToFindValidVoteDateListExistDifferentDateSuccess`, `tryToFindValidVoteDateBallotCreatedDayExistSuccess`, `tryToFindValidVoteDateBallotCreatedDayInvalidFallbackToSystemDateExistSuccess`, `tryToFindValidVoteDateBallotPublicDateExistSuccess`, `tryToFindValidVoteDateSystemDateExistSuccess`, and `tryToFindValidVoteDateSystemDateInvalidFallbackToPublicDateExistSuccess` methods in `service.external.riksdagen/src/test/java/com/hack23/cia/service/external/riksdagen/impl/RiksdagenDateUtilTest.java`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Hack23/cia?shareId=XXXX-XXXX-XXXX-XXXX).
Copy link

github-actions bot commented Jan 5, 2025

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Snapshot Warnings

⚠️: No snapshots were found for the head SHA 543bc91.
Ensure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Files

* Rename `record` to `csvRecord` in multiple locations to avoid using restricted identifiers
* Update method parameters and variable names accordingly
Copy link

sonarqubecloud bot commented Jan 5, 2025

@pethers pethers merged commit a5957e6 into master Jan 5, 2025
7 checks passed
@pethers pethers deleted the pethers/remove-unused-variables branch January 5, 2025 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant