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:
1
core-service/README.md
Normal file
1
core-service/README.md
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# Test new structure
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package examples
|
package auth_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package examples
|
package repository_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
package examples
|
package tests
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"bytes"
|
"bytes"
|
||||||
Reference in New Issue
Block a user