Skip to content

[quality] test: add unit tests for Brewfile parsing and shell tool helpers#63

Open
hanthor-hive-agent[bot] wants to merge 1 commit into
mainfrom
quality/test-packages-tools
Open

[quality] test: add unit tests for Brewfile parsing and shell tool helpers#63
hanthor-hive-agent[bot] wants to merge 1 commit into
mainfrom
quality/test-packages-tools

Conversation

@hanthor-hive-agent

Copy link
Copy Markdown

Test Improvement\n\nAdds 29 unit tests across two packages:\n\ninternal/install/packages_test.go (15 tests):\n- extractQuotedName(): Basic brew/cask quoting, tap prefixes, no-quotes, empty string, unclosed quotes, multiple quotes\n- parseBrewfileBytes(): Empty input, comments-only, taps/flatpaks-only, brew+cask parsing, unknown lines, tap-prefix name truncation, whitespace handling, mixed content\n\ninternal/shell/tools_test.go (14 tests):\n- Tool.GetEnvVar(): Single word and multi-word name to env var conversion\n- Tool.GetBrewPkg(): BrewPkg priority, fallback to Pkg, both empty\n- Tool.SupportsShell(): No restrictions, unsupported shells, partial unsupported\n- ToolsForShell(): Bash filtering, powershell filtering, all tools accounted for\n\nThese tests cover pure-logic functions that previously had no coverage. The internal/install package coverage improves from 18.6% to 23.1%.\n\n---\nFiled by quality agent (ACMM L4/L6 — full mode)

…lpers

Signed-off-by: hive-outreach-agent <outreach@hive.tunaos>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants