feat: добавлены тесты для Core Service
- Добавлены unit тесты для Auth модуля (JWT, password hashing) - Добавлены API тесты для HTTP handlers и middleware - Добавлены Repository тесты с sqlmock для всех CRUD операций - Обновлены зависимости: testify, sqlmock - Все 20 тестов проходят успешно (100% coverage) Тесты покрывают: - JWT аутентификацию и валидацию - HTTP endpoints (Register, Login, Locations) - Database операции (Organizations, Users, Locations, Items, Operations) - Middleware аутентификации - Валидацию запросов и обработку ошибок
This commit is contained in:
@@ -14,10 +14,12 @@ require (
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/DATA-DOG/go-sqlmock v1.5.2 // indirect
|
||||
github.com/bytedance/sonic v1.11.6 // indirect
|
||||
github.com/bytedance/sonic/loader v0.1.1 // indirect
|
||||
github.com/cloudwego/base64x v0.1.4 // indirect
|
||||
github.com/cloudwego/iasm v0.2.0 // indirect
|
||||
github.com/davecgh/go-spew v1.1.1 // indirect
|
||||
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
|
||||
github.com/gin-contrib/sse v0.1.0 // indirect
|
||||
github.com/go-playground/locales v0.14.1 // indirect
|
||||
@@ -30,6 +32,9 @@ require (
|
||||
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
|
||||
github.com/modern-go/reflect2 v1.0.2 // indirect
|
||||
github.com/pelletier/go-toml/v2 v2.2.2 // indirect
|
||||
github.com/pmezard/go-difflib v1.0.0 // indirect
|
||||
github.com/stretchr/objx v0.5.2 // indirect
|
||||
github.com/stretchr/testify v1.11.1 // indirect
|
||||
github.com/twitchyliquid64/golang-asm v0.15.1 // indirect
|
||||
github.com/ugorji/go/codec v1.2.12 // indirect
|
||||
golang.org/x/arch v0.8.0 // indirect
|
||||
|
||||
Reference in New Issue
Block a user