Skip to content

chore: migrate 5 test files to testify (go-custom CR-001 compliance) #717

Description

@sonupreetam

Summary

go-custom.md CR-001 requires testify (assert/require) for all tests. 36 of 41 test files in the repo already use testify. Five files use raw stdlib t.Errorf/t.Fatalf exclusively:

  • internal/doctor/doctor_test.go (40+ test functions — the main outlier)
  • internal/complytime/export_test.go
  • internal/registry/mock_fetcher_test.go
  • pkg/provider/export_test.go
  • pkg/provider/mock_client_test.go

All five files predate the convention pack (go-custom.md was added 2026-05-05 in #494). This is not a regression — it is legacy code that was not migrated when the convention was established.

Action

Migrate these 5 files to use require for fatal preconditions and assert for non-fatal checks, per CR-001 and CR-002.

Convention Reference

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    Priority

    Medium

    Effort

    None yet

    Projects

    Status
    Ready 🚀

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions