saveinmed/backend/internal/http/handler
Tiago Yamamoto 16a9ff7ffe test(handler): expand handler test coverage 6.6% -> 44.9%
Added 40+ new handler tests covering:
- Auth: Register, Login (invalid JSON, missing company)
- Company: Get, Update, Delete, Verify, Rating, MyCompany
- Product: Get, Update, Delete (not found, invalid UUID)
- Inventory: List, Adjust (invalid params)
- Order: Create, Get, Update, Delete (validation)
- Payment: Preference, Webhook, Shipment
- Dashboard: Seller, Admin (authorization)
- User: CRUD operations (admin/seller scoping)
- Cart: Add, Get, Delete (context validation)
- Review: Create (validation)

Fixed MockRepository to return errors for not found entities
2025-12-20 08:21:25 -03:00
..
cart_handler.go refactor(handler): extract order and cart handlers 2025-12-20 08:06:07 -03:00
company_handler.go refactor(handler): extract company handlers + update READMEs 2025-12-20 07:58:37 -03:00
dashboard_handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00
dto.go refactor(handler): extract DTOs and helpers to dto.go 2025-12-20 07:54:35 -03:00
handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00
handler_test.go test(handler): expand handler test coverage 6.6% -> 44.9% 2025-12-20 08:21:25 -03:00
order_handler.go refactor(handler): extract order and cart handlers 2025-12-20 08:06:07 -03:00
payment_handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00
product_handler.go refactor(handler): extract product and inventory handlers 2025-12-20 08:02:02 -03:00
user_handler.go refactor(handler): complete package decomposition - 92% extracted 2025-12-20 08:10:56 -03:00