refactor: реорганизация структуры тестов

- Перемещены unit тесты рядом с тестируемым кодом:
  * auth_test.go -> internal/auth/auth_test.go
  * repository_test.go -> internal/repository/repository_test.go
- Перемещены integration тесты в отдельную директорию:
  * api_test.go -> tests/api_integration_test.go
- Обновлены пакеты тестов:
  * auth_test.go: package auth_test
  * repository_test.go: package repository_test
  * api_integration_test.go: package tests
- Удалена директория examples/
- Обновлен pre-commit хук для новой структуры
- Все тесты проходят успешно
This commit is contained in:
2025-08-27 16:17:12 +04:00
parent 282613edb9
commit 225635ed4b
4 changed files with 4 additions and 3 deletions

1
core-service/README.md Normal file
View File

@@ -0,0 +1 @@
# Test new structure

View File

@@ -1,4 +1,4 @@
package examples package auth_test
import ( import (
"testing" "testing"

View File

@@ -1,4 +1,4 @@
package examples package repository_test
import ( import (
"context" "context"

View File

@@ -1,4 +1,4 @@
package examples package tests
import ( import (
"bytes" "bytes"