Skip to content

[Bug]: testutil package has no tests #14

Description

@mrhillsman

Bug Description

`internal/testutil/` contains two files (`testutil.go` and `binary.go`) with shared test helpers including `UniqueNamespace()`, `MustConnect()`, `CleanupNamespace()`, `DefaultVMOpts()`, `WaitForVMRunning()`, `BinaryPath()`, and `RunVirtwork()`. These helpers are used across all integration and E2E tests but have no unit tests themselves. A bug in a helper (e.g., incorrect label generation in `ManagedLabels()`) could cause false passes across the entire test suite.

Steps to Reproduce

  1. Check for test files corresponding to `internal/testutil/testutil.go` and `internal/testutil/binary.go`
  2. No `testutil_test.go` or `binary_test.go` files exist

Expected Behavior

Test utility functions should have their own unit tests to validate their behavior, since bugs in helpers propagate as false passes/failures across the entire test suite.

Actual Behavior

No tests exist for the testutil package.

Command

Other

Go Version

Not provided

Deployment Mode

Not provided

Additional Context

Severity: Low

Files:

  • `internal/testutil/testutil.go` — no corresponding test file
  • `internal/testutil/binary.go` — no corresponding test file

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueDenotes an issue ready for a new contributor, according to the "help wanted" guidelines.kind/bugCategorizes issue or PR as related to a bug.size/MDenotes a PR that changes 30-99 lines, ignoring generated files.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions