Conversation
cagoya
approved these changes
Dec 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds comprehensive test coverage for the backend API, configuration, database, and documentation layers. It introduces new test suites for each major handler and service, ensures route registration is validated, and tests configuration and database initialization logic. The changes also include minor dependency updates and the addition of embedded Postgres for integration testing.
The most important changes are:
API Handler and Endpoint Testing:
extended_handlers_test.gowith thorough end-to-end tests for all CRUD and lifecycle operations of templates, batches, tasks, experiments, and reports, including edge cases and file download/delete scenarios.handler_test.goto cover error handling and input validation for opportunities and price comparison endpoints.Route Registration Verification:
register_test.goto assert that all API routes for templates, batches, tasks, reports, and experiments are properly registered in the Gin router.Configuration and Database Testing:
viper_test.goto test configuration file loading and error handling for missing config directories.database_test.goto test database initialization, connection errors, and panic conditions, using embedded Postgres for integration tests.API Documentation and Metadata:
docs_test.goto verify that Swagger documentation is generated and customizable as expected.swagger_config.goto enforce sensible default metadata for the Swagger spec, improving test reliability for documentation.Dependency Updates:
go.modto addembedded-postgresandlib/pqfor testing and integration, and bumped several dependencies to newer versions. [1] [2] [3]