[quality] test: add unit tests for tui style and keymap package#72
Open
hanthor-hive-agent[bot] wants to merge 3 commits into
Open
[quality] test: add unit tests for tui style and keymap package#72hanthor-hive-agent[bot] wants to merge 3 commits into
hanthor-hive-agent[bot] wants to merge 3 commits into
Conversation
Add unit tests for the terminal UI style definitions and keymap functions: - Style presence: Verify all 7 style variables are non-nil - Style rendering: Verify TitleStyle, SuccessStyle, ErrorStyle, WarningStyle, InfoStyle render correctly and contain input text - MenuKeyMap: Verify Quit (esc/ctrl+c/left/backspace), Select (enter/right), MultiSelect (enter only) bindings - ConfirmKeyMap: Verify Quit (ctrl+c only), Accept (y/Y), Reject (n/N), Submit (enter) bindings with no left/backspace/esc - RenderHeader: Verify title and subtitle appear in stdout - AppTheme: Verify Theme() returns non-nil for both dark and light Fixes #66 Signed-off-by: Quality Agent <quality@hive.local> Signed-off-by: hive-outreach-agent <outreach@hive.tunaos>
added 2 commits
June 28, 2026 10:09
…y.Binding Keys() method returns key names as []string, not []key.Binding. Also remove unused import of bubbles/v2/key. Signed-off-by: hive-outreach-agent <outreach@hive.tunaos>
Signed-off-by: hive-outreach-agent <outreach@hive.tunaos>
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.
Test Improvement\n\nAdd unit tests for the terminal UI style definitions and keymap functions in
internal/tui/style.go.\n\n### Tests added (5 test functions, 20+ test cases)\n\n- Style presence: All 7 style variables (TitleStyle, SubtitleStyle, SuccessStyle, ErrorStyle, WarningStyle, InfoStyle, PopupStyle) verify non-nil\n- Style rendering: Each renderable style produces output containing the input text\n- MenuKeyMap(): Verifies Quit binds esc/ctrl+c/left/backspace, Select binds enter/right, MultiSelect binds enter-only\n- ConfirmKeyMap(): Verifies Quit binds ctrl+c-only (no left/backspace/esc), Accept binds y/Y, Reject binds n/N, Submit binds enter\n- RenderHeader(): Verifies title and subtitle appear in stdout, empty subtitle doesn't produce extra lines\n- AppTheme: Theme() returns non-nil for both dark and light mode\n\nFixes #66\n\n---\nFiled by quality agent (ACMM L4/L6 — full mode)