Skip to content

Make setLog private for internal testing - #412

Merged
leandrumartin merged 2 commits into
oss-slu:mainfrom
ShravanAYG:fix-test-log
Oct 21, 2025
Merged

Make setLog private for internal testing#412
leandrumartin merged 2 commits into
oss-slu:mainfrom
ShravanAYG:fix-test-log

Conversation

@ShravanAYG

@ShravanAYG ShravanAYG commented Oct 21, 2025

Copy link
Copy Markdown
Contributor

Pull Request Summary

This PR makes the setLog methods in helper classes (such as FourDigitSevenSegmentDisplayHelper, LEDHelper, UltraSonicSensorHelper, and ServoMotorHelper) package private instead of public.

PR Checklist

Detailed Description

Previously, these methods were public so that unit tests could inject mock Logger objects. However, this made it possible for external users of the library to override the logger which is unnecessary.
They are now only accessible within the package and remain usable for internal tests.

@CLAassistant

CLAassistant commented Oct 21, 2025

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@leandrumartin leandrumartin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for your contribution! There just needs to be slight changes to make sure the comments fit Javadoc formatting.

@leandrumartin leandrumartin left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good now. Thank you for your contribution!

@leandrumartin
leandrumartin merged commit 5839c31 into oss-slu:main Oct 21, 2025
5 of 6 checks passed
@leandrumartin leandrumartin added the hacktoberfest-accepted For accepted and merged PRs for Hacktoberfest label Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hacktoberfest-accepted For accepted and merged PRs for Hacktoberfest

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rewrite how testing for log message is done

3 participants