Repository navigation
Add unit tests for modules/bargraph (0% → 100% coverage) - #2144
Merged
Seanstoppable merged 1 commit intoJul 26, 2026
Merged
Seanstoppable merged 1 commit into
Seanstoppable merged 1 commit into
Conversation
Table-driven tests covering: - NewSettingsFromYAML with default and custom values - NewWidget construction - MakeGraph output format and bar count - Refresh when enabled and disabled - BuildStars with various percentages, labels, alignment, and edge cases
Seanstoppable
force-pushed
the
seanstoppable-bargraph-test-coverage
branch
from
July 26, 2026 04:39
34d4e65 to
dc39b24
Compare
Seanstoppable
enabled auto-merge (squash)
July 26, 2026 04:41
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds table-driven unit tests for
modules/bargraph, bringing statement coverage from 0% to 100%.Tests Added
TestNewSettingsFromYAML— verifies settings construction with default and custom titlesTestDefaultConstants— asserts default focusable/title valuesTestNewWidget— validates widget constructionTestMakeGraph— checks output format (8 bars, time labels)TestMakeGraph_BarsHaveValidFormat— verifies bar characters and color markersTestMakeGraph_MultipleCallsOverwrite— ensures repeated calls produce valid outputTestRefresh— exercises the enabled refresh pathTestRefresh_WhenDisabled— exercises the disabled early-return pathTestBuildStars_*— comprehensive tests for the pureview.BuildStarsfunction:Verification