You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor(component,generic,http): move test functions to test files and improve code legibility (#1131)
Because
- PR #1121 comments requested moving test-specific functions out of
production code to improve code organization
- Nested if-else structures in test code reduced readability and could
be simplified with early returns
This commit
- Moves `NewTestURLValidator` from `validator.go` to `validator_test.go`
to keep test utilities in test files
- Moves `InitForTest` from `main.go` to `validator_test.go` to separate
test-specific component initialization from production code
- Refactors nested if-else structure in validator test (lines 90-99)
using early returns to improve code legibility
- Removes test functions from production code, reducing binary size and
improving maintainability
0 commit comments