Files
gitea/routers/api
Brice Ruth 6b074cb3e9 refactor: extract buildRunOptions for better test coverage
- Extract FindRunOptions construction logic from ListRuns into buildRunOptions function
- Update TestListRunsWorkflowFiltering and related tests to use actual production code
- Tests now verify production logic instead of duplicating parameter parsing
- Improved error handling by returning errors instead of direct HTTP responses
- Ensures future changes to parameter parsing are properly tested

This addresses the issue where tests were bypassing production code logic,
making them less reliable for catching regressions.
2025-07-04 10:41:00 -05:00
..