feat: [#789] [SUB-786] Init the basic structure#1230
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR introduces a new ApplicationBuilder pattern to the Goravel framework, providing a fluent interface for configuring and creating application instances. The implementation follows the builder pattern to allow for method chaining and flexible application setup.
- Adds ApplicationBuilder interface and implementation with Create, Run, and WithConfig methods
- Provides mock implementation for testing ApplicationBuilder functionality
- Includes comprehensive test coverage for all ApplicationBuilder methods
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| contracts/foundation/application.go | Defines the ApplicationBuilder interface contract |
| foundation/application_builder.go | Implements the ApplicationBuilder pattern with fluent API |
| foundation/application_builder_test.go | Comprehensive tests for ApplicationBuilder functionality |
| mocks/foundation/ApplicationBuilder.go | Auto-generated mock for testing ApplicationBuilder |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1230 +/- ##
=======================================
Coverage 65.95% 65.95%
=======================================
Files 243 244 +1
Lines 16698 16717 +19
=======================================
+ Hits 11013 11026 +13
- Misses 5304 5310 +6
Partials 381 381 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
📑 Description
Closes goravel/goravel#789
✅ Checks