- Добавлены 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 аутентификации - Валидацию запросов и обработку ошибок
47 lines
1.7 KiB
Modula-2
47 lines
1.7 KiB
Modula-2
module erp-mvp/core-service
|
|
|
|
go 1.21
|
|
|
|
require (
|
|
github.com/gin-gonic/gin v1.10.1
|
|
github.com/go-playground/validator/v10 v10.20.0
|
|
github.com/golang-jwt/jwt/v5 v5.3.0
|
|
github.com/google/uuid v1.3.1
|
|
github.com/joho/godotenv v1.4.0
|
|
github.com/lib/pq v1.10.9
|
|
github.com/sirupsen/logrus v1.9.3
|
|
golang.org/x/crypto v0.23.0
|
|
)
|
|
|
|
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
|
|
github.com/go-playground/universal-translator v0.18.1 // indirect
|
|
github.com/goccy/go-json v0.10.2 // indirect
|
|
github.com/json-iterator/go v1.1.12 // indirect
|
|
github.com/klauspost/cpuid/v2 v2.2.7 // indirect
|
|
github.com/leodido/go-urn v1.4.0 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
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
|
|
golang.org/x/net v0.25.0 // indirect
|
|
golang.org/x/sys v0.20.0 // indirect
|
|
golang.org/x/text v0.15.0 // indirect
|
|
google.golang.org/protobuf v1.34.1 // indirect
|
|
gopkg.in/yaml.v3 v3.0.1 // indirect
|
|
)
|