Skip to content

Add unit tests for pkg/utils folder #752

Open
@Prakhar-Shankar

Description

@Prakhar-Shankar

Title:

test(utils): Add unit tests for all utility modules in pkg/utils folder

Description:

Currently, the following utility files in the utils/ folder lack full test coverage:

This issue tracks the gradual addition of table-driven unit tests for each of these files. All tests will follow Go testing best practices and be covered under separate PRs.

Goal:

Achieve 90–100% test coverage across the utils/ folder.

Progress Tracker:

  • stringutils.go
  • retry.go
  • exec.go

Note: Exec function is yet not covered because it it external-system heavy and I would like feedback before mocking

Additional Notes:

Tests will be added incrementally via well-scoped PRs and linked to this issue. This allows for easier review and faster feedback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions