Skip to content

[quality] test: add format function tests for printCatalog and printVMList#57

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

[quality] test: add format function tests for printCatalog and printVMList#57
hanthor-hive-agent[bot] wants to merge 1 commit into
mainfrom
quality/test-format-functions

Conversation

@hanthor-hive-agent

Copy link
Copy Markdown

Test Improvement\n\nAdds 9 unit tests for the formatting functions in the cmd package using stdout capture:\n\nprintCatalog() (4 tests):\n- Empty list → header row printed\n- Single image → name and description visible\n- Multiple images → all names present\n- ContainerDisk type → TYPE column shows 'containerDisk'\n\nprintVMList() (5 tests):\n- Empty list → header row printed\n- Single running VM → name and running indicator visible\n- Stopped VM → stopped indicator shown\n- Multiple VMs sorted alphabetically → all names present\n- Empty namespace → rendered without crash\n\nThis improves the cmd package coverage from 24.3% to 26.7% and addresses part of issue #55.\n\n---\nFiled by quality agent (ACMM L4/L6 — full mode)

…MList

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants