Skip to content

test(qemu): improve helper and command coverage#710

Open
sachin9058 wants to merge 2 commits into
urunc-dev:mainfrom
sachin9058:test/qemu-coverage
Open

test(qemu): improve helper and command coverage#710
sachin9058 wants to merge 2 commits into
urunc-dev:mainfrom
sachin9058:test/qemu-coverage

Conversation

@sachin9058
Copy link
Copy Markdown

Summary

Adds unit tests for QEMU helper methods and command construction.

Covered methods:

  • UsesKVM
  • SupportsSharedfs
  • Path
  • PreExec
  • getVirtioNetArg
  • BuildExecCmd

This increases coverage in pkg/unikontainers/hypervisors and improves validation around QEMU command generation.

Testing

go test ./pkg/unikontainers/hypervisors -cover

Coverage increased from roughly 2.7% to 15.2%.

Signed-off-by: Sachin Kumar <sachinkumar905846@gmail.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented May 19, 2026

Deploy Preview for urunc canceled.

Name Link
🔨 Latest commit 93f1085
🔍 Latest deploy log https://app.netlify.com/projects/urunc/deploys/6a0c87516cfe09000882ee77

@sachin9058
Copy link
Copy Markdown
Author

Hi @cmainas I have added tests for QEMU helper methods and BuildExecCmd() to improve coverage in pkg/unikontainers/hypervisors. can u take a look on this PR ??

Signed-off-by: Sachin Kumar <sachinkumar905846@gmail.com>
@sachin9058 sachin9058 force-pushed the test/qemu-coverage branch from e3c973b to 93f1085 Compare May 19, 2026 15:52
@cmainas
Copy link
Copy Markdown
Contributor

cmainas commented May 20, 2026

Hello @sachin9058 , please read the contribution guide.

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.

2 participants